public function ResolveReferencesToAliasesPassTest::testAliasCircularReference in Service Container 7.2
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testAliasCircularReference() {
$container = new ContainerBuilder();
$container
->setAlias('bar', 'foo');
$container
->setAlias('foo', 'bar');
$this
->process($container);
}