diff --git a/tests/Serializer/PayloadNormalizerTest.php b/tests/Serializer/PayloadNormalizerTest.php index bc5d2f8..ee1be2d 100644 --- a/tests/Serializer/PayloadNormalizerTest.php +++ b/tests/Serializer/PayloadNormalizerTest.php @@ -62,6 +62,11 @@ public function testSupportsDenormalization() $this->assertTrue($this->serializer->supportsDenormalization($payload, ContactByIdentityQuery::class)); } + public function testSupportsDenormalizationNoClass() + { + $this->assertFalse($this->serializer->supportsDenormalization(['id' => 123], 'foo')); + } + public function testDenormalize() { $payload = [