public function CheckReferenceValidityPassTest::testProcessDetectsReferenceToAbstractDefinition

@expectedException \RuntimeException

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php, line 74

Class

CheckReferenceValidityPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessDetectsReferenceToAbstractDefinition() {
  $container = new ContainerBuilder();
  $container
    ->register('a')
    ->setAbstract(true);
  $container
    ->register('b')
    ->addArgument(new Reference('a'));
  $this
    ->process($container);
}