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

testGetReturnsRegisteredService() public method

    public function testGetReturnsRegisteredService()
    {
        $builder = new ContainerBuilder();
        $builder->set('bar', $bar = new \stdClass());

        $this->assertSame($bar, $builder->get('bar'), '->get() returns the service associated with the id');
    }
ContainerBuilderTest