public testNotImplementingInterfaceFound ( ) |
public function testNotImplementingInterfaceFound()
{
$serializerFactory = new SerializerFactory('\\Mmoreram\\RSQueueBundle\\Tests\\Factory\\Serializer\\FooSerializer');
try {
$serializerFactory->get();
} catch (SerializerNotImplementsInterfaceException $expected) {
return;
}
$this->fail('An expected SerializerNotImplementsInterfaceException exception has not been raised.');
}