* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Tests\LazyProxy\Instantiator; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInstantiator; /** * Tests for {@see \Symfony\Component\DependencyInjection\Instantiator\RealServiceInstantiator}. * * @author Marco Pivetta */ class RealServiceInstantiatorTest extends TestCase { public function testInstantiateProxy() { $instantiator = new RealServiceInstantiator(); $instance = new \stdClass(); $container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock(); $callback = function () use ($instance) { return $instance; }; $this->assertSame($instance, $instantiator->instantiateProxy($container, new Definition(), 'foo', $callback)); } } __halt_compiler();----SIGNATURE:----dp5vtFz+46cW3V2r6UqtQnzOkJeqa2GoX4SoP1nSEl0aejpRpQpNT0nkKKWFyRAdk4r/lCVqoBjAg1ddpbAsom/7OpQDV499+DrfDNMO3gl9gV0w8FT1wzQk6KOzdSu2V4YGXo8d20KcMGwIIJ+GFlUWg4WQRN+bop+fYL/Gxn0Wbl+AjF9jBDb2KrF7NSn3kc6y2+zAfsQw6xM0HqKAlFhzjYUlHor854O1+ztSOaReDPlJoiqk6Z2hUz9FOWRqa2kL4QWRXv1pjzwCVCQECS5vCyeCYXEg7wrnzQs0xJwZQK7jfn+NikUbYFkA5IbZs6y7sAZ7Lx5jBk7y+HhmI2Btj8yf4MbUDen9+yGhr49Zhy7bc2k5hMQNIT39ckhXD/6baiTcIvinY8AgCgN4e10lev3H7pbhKsv4y/lPiIUagSWKTgysutIXWkUkHM3eRm7SFsW772t0jWOEEKJAa+DXeWB7TEhhQAagZ9WKTGobFb35xKRAJpt3HdgYCpk2yKex6hNuMwbSWRNQ5eJpkaHD050gVDHhd+27m8FgNyj4KflO2lFThpjiYE5PjqMXZJTfFo8sGzthdLSO8/6wRLILoWc+E1tzSB4/GVQAnetVX99wWssM7KQOeeQngkcgGIrdJDnjTscdBpvQ3BsCTyNHdE3BLL7tAx+SxZ95e60=----ATTACHMENT:----Mzk1OTczNTgwNDcyMDAyMSAzODQ3MjU4NDQ0NTQ1NTA1IDY4Mjg4MTU2MzMzNTg3MDM=