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'); }