public function ContainerBuilderTest::testGetReturnsNullOnInactiveScope in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testGetReturnsNullOnInactiveScope()
@covers Symfony\Component\DependencyInjection\ContainerBuilder::get
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerBuilderTest.php, line 147
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testGetReturnsNullOnInactiveScope() {
$builder = new ContainerBuilder();
$builder
->register('foo', 'stdClass')
->setScope('request');
$this
->assertNull($builder
->get('foo', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}