PhpBench\Tests\Unit\Registry\RegistryTest::testDefaultGetNoDefault PHP Method

testDefaultGetNoDefault() public method

It should throw an exception if no argument given to get() and no default is defined.
    public function testDefaultGetNoDefault()
    {
        $registry = new Registry('test', $this->container->reveal());
        $registry->setService('foo', 'bar');
        $this->assertEquals($registry->getService(), 'bar');
    }