public function RealServiceInstantiatorTest::testInstantiateProxy in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php \Symfony\Component\DependencyInjection\Tests\LazyProxy\Instantiator\RealServiceInstantiatorTest::testInstantiateProxy()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ LazyProxy/ Instantiator/ RealServiceInstantiatorTest.php, line 26
Class
- RealServiceInstantiatorTest
- Tests for { @author Marco Pivetta <ocramius@gmail.com>
Namespace
Symfony\Component\DependencyInjection\Tests\LazyProxy\InstantiatorCode
public function testInstantiateProxy() {
$instantiator = new RealServiceInstantiator();
$instance = new \stdClass();
$container = $this
->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
$callback = function () use ($instance) {
return $instance;
};
$this
->assertSame($instance, $instantiator
->instantiateProxy($container, new Definition(), 'foo', $callback));
}