public function RemoveUnusedDefinitionsPassTest::testProcessWorksWithInlinedDefinitions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/Compiler/RemoveUnusedDefinitionsPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\RemoveUnusedDefinitionsPassTest::testProcessWorksWithInlinedDefinitions()
File
- vendor/
symfony/ dependency-injection/ Tests/ Compiler/ RemoveUnusedDefinitionsPassTest.php, line 65
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessWorksWithInlinedDefinitions() {
$container = new ContainerBuilder();
$container
->register('foo')
->setPublic(false);
$container
->register('bar')
->setArguments(array(
new Definition(null, array(
new Reference('foo'),
)),
));
$this
->process($container);
$this
->assertTrue($container
->hasDefinition('foo'));
$this
->assertTrue($container
->hasDefinition('bar'));
}