Symfony\Component\Serializer\Tests\Normalizer\ObjectNormalizerTest::testRejectInvalidType PHP Method

testRejectInvalidType() public method

    public function testRejectInvalidType()
    {
        $normalizer = new ObjectNormalizer(null, null, null, new ReflectionExtractor());
        $serializer = new Serializer(array($normalizer));
        $serializer->denormalize(array('date' => 'foo'), ObjectOuter::class);
    }