Nelmio\Alice\Throwable\Exception\FixtureBuilder\Denormalizer\DenormalizerExceptionFactoryTest::testTestCreateForUnparsableValue PHP Method

testTestCreateForUnparsableValue() public method

    public function testTestCreateForUnparsableValue()
    {
        $code = 500;
        $previous = new \Error();
        $exception = DenormalizerExceptionFactory::createForUnparsableValue('foo', $code, $previous);
        $this->assertEquals('Could not parse value "foo".', $exception->getMessage());
        $this->assertEquals($code, $exception->getCode());
        $this->assertSame($previous, $exception->getPrevious());
    }