public function ContainerBuilderTest::testGetReturnsNullOnInactiveScopeWhenServiceIsCreatedByAMethod in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testGetReturnsNullOnInactiveScopeWhenServiceIsCreatedByAMethod()
@covers Symfony\Component\DependencyInjection\ContainerBuilder::get
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ContainerBuilderTest.php, line 158
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testGetReturnsNullOnInactiveScopeWhenServiceIsCreatedByAMethod() {
$builder = new ProjectContainer();
$this
->assertNull($builder
->get('foobaz', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}