+
+ /**
+ * @requires PHP 7.1
+ */
+ public function testObjectWithNullableConstructorArgument()
+ {
+ $normalizer = new ObjectNormalizer();
+ $dummy = $normalizer->denormalize(array('foo' => null), NullableConstructorArgumentDummy::class);
+
+ $this->assertNull($dummy->getFoo());
+ }