Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testThrowsExceptionWhenAddServiceOnAFrozenContainer PHP Method

testThrowsExceptionWhenAddServiceOnAFrozenContainer() public method

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