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