@expectedException BadMethodCallException
public function testThrowsExceptionWhenSetServiceOnAFrozenContainer() {
if (!class_exists('Symfony\\Component\\Config\\Resource\\FileResource')) {
$this
->markTestSkipped('The "Config" component is not available');
}
$container = new ContainerBuilder();
$container
->compile();
$container
->set('a', new \stdClass());
}