PhpBench\Tests\Unit\Formatter\FormatRegistryTest::testRegisterExisting PHP Method

testRegisterExisting() public method

It should throw an exception if an attempt is made to add a duplicate format.
    public function testRegisterExisting()
    {
        $this->registry->register('hello', $this->format->reveal());
        $this->registry->register('hello', $this->format->reveal());
    }