public function CheckCircularReferencesPassTest::testProcessWithAliases in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\CheckCircularReferencesPassTest::testProcessWithAliases()
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Compiler/ CheckCircularReferencesPassTest.php, line 37
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessWithAliases() {
$container = new ContainerBuilder();
$container
->register('a')
->addArgument(new Reference('b'));
$container
->setAlias('b', 'c');
$container
->setAlias('c', 'a');
$this
->process($container);
}