public function ResolveReferencesToAliasesPassTest::testProcess 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::testProcess()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Compiler/ ResolveReferencesToAliasesPassTest.php, line 20
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcess() {
$container = new ContainerBuilder();
$container
->setAlias('bar', 'foo');
$def = $container
->register('moo')
->setArguments(array(
new Reference('bar'),
));
$this
->process($container);
$arguments = $def
->getArguments();
$this
->assertEquals('foo', (string) $arguments[0]);
}