public function testMultipleInterfacesException() { $typeInterface = 'Thunder\\Serializard\\Tests\\Fake\\Interfaces\\TypeInterface'; $typeAnother = 'Thunder\\Serializard\\Tests\\Fake\\Interfaces\\AnotherTypeInterface'; $typeMultiple = 'Thunder\\Serializard\\Tests\\Fake\\Interfaces\\TypeMultiple'; $hydrators = new FallbackHydratorContainer(); $hydrators->add($typeInterface, 'type', function () { return 'multiple'; }); $hydrators->add($typeAnother, 'type', function () { return 'multiple'; }); $this->setExpectedException('RuntimeException'); $hydrators->getHandler($typeMultiple); }