Mmoreram\RSQueueBundle\Tests\Factory\SerializerFactoryTest::testNotImplementingInterfaceFound PHP Method

testNotImplementingInterfaceFound() public method

Tests class found with not implementation of SerializerInterface
    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.');
    }