File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php, line 82
Class
- ResolveDefinitionTemplatesPassTest
Namespace
Symfony\Component\DependencyInjection\Tests\Compiler
Code
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());
}