public function ContainerBuilderTest::testThrowsExceptionWhenSetDefinitionOnAFrozenContainer in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testThrowsExceptionWhenSetDefinitionOnAFrozenContainer()
@expectedException \BadMethodCallException
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ContainerBuilderTest.php, line 789
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testThrowsExceptionWhenSetDefinitionOnAFrozenContainer() {
$container = new ContainerBuilder();
$container
->setResourceTracking(false);
$container
->compile();
$container
->setDefinition('a', new Definition());
}