PhpBench\Tests\Unit\Registry\RegistryTest::testSetAndRetrieve PHP Метод

testSetAndRetrieve() публичный Метод

It should set and retrieve services.
public testSetAndRetrieve ( )
    public function testSetAndRetrieve()
    {
        $this->registry->setService('one', $this->service1->reveal());
        $service = $this->registry->getService('one');
        $this->assertSame($this->service1->reveal(), $service);
    }