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

testRejectInvalidKey() public method

    public function testRejectInvalidKey()
    {
        $extractor = new PropertyInfoExtractor(array(), array(new PhpDocExtractor(), new ReflectionExtractor()));
        $normalizer = new ObjectNormalizer(null, null, null, $extractor);
        $serializer = new Serializer(array(new ArrayDenormalizer(), new DateTimeNormalizer(), $normalizer));
        $serializer->denormalize(array('inners' => array('a' => array('foo' => 1))), ObjectOuter::class);
    }