spec/Phn/Mapping/HierarchicalMapperSpec.php
function it_throws_an_exception_when_attempting_to_register_the_same_type_twice($converter)
    {
        $this->setType('decimal', $converter);
        $this->shouldThrow(new ResourceHandlerAlreadyDefinedException( 'An handler for resource "decimal" has already been registered.'))->duringSetType('decimal', $converter);
    }
function it_throws_an_exception_when_attempting_to_register_the_same_type_twice($converter)
    {
        $this->setType('decimal', $converter);
        $this->shouldThrow(new ResourceHandlerAlreadyDefinedException( 'An handler for resource "decimal" has already been registered.'))->duringSetType('decimal', $converter);
    }
function it_throws_an_exception_when_attempting_to_register_the_same_type_twice ( $ converter ) { $ this -> setType ( 'decimal' , $ converter ) ; $ this -> shouldThrow ( new ResourceHandlerAlreadyDefinedException ( 'An handler for resource "decimal" has already been registered.' ) ) -> duringSetType ( 'decimal' , $ converter ) ; }
It throws an exception when attempting to register the same type twice.

@param \Phn\Mapping\Converter\ConverterInterface $converter
It throws an exception when attempting to register the same type twice .