You are here

public function CheckCircularReferencesPassTest::testProcessWithAliases in Zircon Profile 8.0

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

@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException

File

vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php, line 37

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);
}