public function ResolveInvalidReferencesPassTest::testProcessRemovesPropertiesOnInvalid in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/Compiler/ResolveInvalidReferencesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveInvalidReferencesPassTest::testProcessRemovesPropertiesOnInvalid()
File
- vendor/
symfony/ dependency-injection/ Tests/ Compiler/ ResolveInvalidReferencesPassTest.php, line 51
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessRemovesPropertiesOnInvalid() {
$container = new ContainerBuilder();
$def = $container
->register('foo')
->setProperty('foo', new Reference('bar', ContainerInterface::IGNORE_ON_INVALID_REFERENCE));
$this
->process($container);
$this
->assertEquals(array(), $def
->getProperties());
}