public function testThrowsExceptionWhenAddServiceOnAFrozenContainer() { $container = new ContainerBuilder(); $container->compile(); $container->set('a', $foo = new \stdClass()); $this->assertSame($foo, $container->get('a')); }