You are here

public function ResolveDefinitionTemplatesPassTest::testProcessDoesNotCopyAbstract in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveDefinitionTemplatesPassTest::testProcessDoesNotCopyAbstract()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php, line 63

Class

ResolveDefinitionTemplatesPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessDoesNotCopyAbstract() {
  $container = new ContainerBuilder();
  $container
    ->register('parent')
    ->setAbstract(true);
  $container
    ->setDefinition('child', new DefinitionDecorator('parent'));
  $this
    ->process($container);
  $def = $container
    ->getDefinition('child');
  $this
    ->assertFalse($def
    ->isAbstract());
}