public function testSetAndRetrieve() { $this->registry->setService('one', $this->service1->reveal()); $service = $this->registry->getService('one'); $this->assertSame($this->service1->reveal(), $service); }