public function ContainerBuilderTest::testThrowsExceptionWhenAddServiceOnAFrozenContainer 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::testThrowsExceptionWhenAddServiceOnAFrozenContainer()
@expectedException \BadMethodCallException
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ContainerBuilderTest.php, line 712
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testThrowsExceptionWhenAddServiceOnAFrozenContainer() {
$container = new ContainerBuilder();
$container
->compile();
$container
->set('a', new \stdClass());
}