public function PropertyNormalizerTest::testConstructorDenormalizeWithNullArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/PropertyNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\PropertyNormalizerTest::testConstructorDenormalizeWithNullArgument()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ PropertyNormalizerTest.php, line 148
Class
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testConstructorDenormalizeWithNullArgument() {
$obj = $this->normalizer
->denormalize(array(
'foo' => null,
'bar' => 'bar',
), __NAMESPACE__ . '\\PropertyConstructorDummy', '
any');
$this
->assertNull($obj
->getFoo());
$this
->assertEquals('bar', $obj
->getBar());
}