public function CheckCircularReferencesPassTest::testProcessWithAliases

@expectedException \RuntimeException

File

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

Class

CheckCircularReferencesPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testProcessWithAliases() {
  $container = new ContainerBuilder();
  $container
    ->register('a')
    ->addArgument(new Reference('b'));
  $container
    ->setAlias('b', 'c');
  $container
    ->setAlias('c', 'a');
  $this
    ->process($container);
}