You are here

public function ResolveReferencesToAliasesPassTest::testAliasCircularReference in Service Container 7.2

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

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

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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);
}