public function ResolveReferencesToAliasesPassTest::testProcessRecursively in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveReferencesToAliasesPassTest::testProcessRecursively()
File
- vendor/
symfony/ dependency-injection/ Tests/ Compiler/ ResolveReferencesToAliasesPassTest.php, line 35
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessRecursively() {
$container = new ContainerBuilder();
$container
->setAlias('bar', 'foo');
$container
->setAlias('moo', 'bar');
$def = $container
->register('foobar')
->setArguments(array(
new Reference('moo'),
));
$this
->process($container);
$arguments = $def
->getArguments();
$this
->assertEquals('foo', (string) $arguments[0]);
}