public function InlineServiceDefinitionsPassTest::testProcessDoesNotInlineWhenServiceIsPrivateButLazy in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\InlineServiceDefinitionsPassTest::testProcessDoesNotInlineWhenServiceIsPrivateButLazy()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Compiler/ InlineServiceDefinitionsPassTest.php, line 205
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessDoesNotInlineWhenServiceIsPrivateButLazy() {
$container = new ContainerBuilder();
$container
->register('foo')
->setPublic(false)
->setLazy(true);
$container
->register('service')
->setArguments(array(
$ref = new Reference('foo'),
));
$this
->process($container);
$arguments = $container
->getDefinition('service')
->getArguments();
$this
->assertSame($ref, $arguments[0]);
}