Nelmio\Alice\Throwable\Exception\LogicExceptionFactoryTest::testTestCreateForCannotDenormalizerForChainableFixtureBuilderDenormalizer PHP Method

testTestCreateForCannotDenormalizerForChainableFixtureBuilderDenormalizer() public method

    public function testTestCreateForCannotDenormalizerForChainableFixtureBuilderDenormalizer()
    {
        $exception = LogicExceptionFactory::createForCannotDenormalizerForChainableFixtureBuilderDenormalizer('foo');
        $this->assertEquals('As a chainable denormalizer, "foo" should be called only if "::canDenormalize() returns true. Got ' . 'false instead.', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }