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

testUnableToNormalizeObjectAttribute() public method

    public function testUnableToNormalizeObjectAttribute()
    {
        $serializer = $this->getMockBuilder('Symfony\\Component\\Serializer\\SerializerInterface')->getMock();
        $this->normalizer->setSerializer($serializer);
        $obj = new ObjectDummy();
        $object = new \stdClass();
        $obj->setObject($object);
        $this->normalizer->normalize($obj, 'any');
    }