PhpBench\Tests\Unit\Registry\ConfigurableRegistryTest::testExtendsDifferentServiceException PHP Метод

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

It should throw an exception if a config extends a config from a different service.
    public function testExtendsDifferentServiceException()
    {
        $config1 = ['test' => 'service1'];
        $config2 = ['test' => 'service2', 'extends' => 'config1'];
        $this->registry->setService('service1', $this->service1->reveal());
        $this->registry->setService('service2', $this->service2->reveal());
        $this->registry->setConfig('config1', $config1);
        $this->registry->setConfig('config2', $config2);
        $this->registry->getConfig('config2');
    }