public function ResolveInvalidReferencesPassTest::testProcessIgnoreNonExistentServices in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveInvalidReferencesPassTest::testProcessIgnoreNonExistentServices()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Compiler/ ResolveInvalidReferencesPassTest.php, line 37
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessIgnoreNonExistentServices() {
$container = new ContainerBuilder();
$def = $container
->register('foo')
->setArguments(array(
new Reference('bar'),
));
$this
->process($container);
$arguments = $def
->getArguments();
$this
->assertEquals('bar', (string) $arguments[0]);
}