public function ResolveDefinitionTemplatesPassTest::testProcessDoesNotCopyScope in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveDefinitionTemplatesPassTest::testProcessDoesNotCopyScope()
File
- vendor/
symfony/ dependency-injection/ Tests/ Compiler/ ResolveDefinitionTemplatesPassTest.php, line 82
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessDoesNotCopyScope() {
$container = new ContainerBuilder();
$container
->register('parent')
->setScope('foo');
$container
->setDefinition('child', new DefinitionDecorator('parent'));
$this
->process($container);
$def = $container
->getDefinition('child');
$this
->assertEquals(ContainerInterface::SCOPE_CONTAINER, $def
->getScope());
}