public function ContainerBuilderTest::testThrowsExceptionWhenSetServiceOnAFrozenContainer in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testThrowsExceptionWhenSetServiceOnAFrozenContainer()
@expectedException \BadMethodCallException
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerBuilderTest.php, line 699
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testThrowsExceptionWhenSetServiceOnAFrozenContainer() {
$container = new ContainerBuilder();
$container
->setResourceTracking(false);
$container
->setDefinition('a', new Definition('stdClass'));
$container
->compile();
$container
->set('a', new \stdClass());
}