You are here

public function ResolveReferencesToAliasesPassTest::testAliasCircularReference in Zircon Profile 8.0

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

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

File

vendor/symfony/dependency-injection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php, line 54

Class

ResolveReferencesToAliasesPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

public function testAliasCircularReference() {
  $container = new ContainerBuilder();
  $container
    ->setAlias('bar', 'foo');
  $container
    ->setAlias('foo', 'bar');
  $this
    ->process($container);
}