You are here

public function ResolveDefinitionTemplatesPassTest::testProcessDoesNotCopyDecoratedService in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveDefinitionTemplatesPassTest::testProcessDoesNotCopyDecoratedService()

File

vendor/symfony/dependency-injection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php, line 120

Class

ResolveDefinitionTemplatesPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessDoesNotCopyDecoratedService() {
  $container = new ContainerBuilder();
  $container
    ->register('parent')
    ->setDecoratedService('foo');
  $container
    ->setDefinition('child', new DefinitionDecorator('parent'));
  $this
    ->process($container);
  $def = $container
    ->getDefinition('child');
  $this
    ->assertNull($def
    ->getDecoratedService());
}