public function CheckCircularReferencesPassTest::testProcess in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\CheckCircularReferencesPassTest::testProcess()
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
File
- vendor/
symfony/ dependency-injection/ Tests/ Compiler/ CheckCircularReferencesPassTest.php, line 25
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcess() {
$container = new ContainerBuilder();
$container
->register('a')
->addArgument(new Reference('b'));
$container
->register('b')
->addArgument(new Reference('a'));
$this
->process($container);
}