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

testConstructorDenormalizeWithNullArgument() public method

    public function testConstructorDenormalizeWithNullArgument()
    {
        $obj = $this->normalizer->denormalize(array('foo' => 'foo', 'bar' => null, 'baz' => true), __NAMESPACE__ . '\\ObjectConstructorDummy', 'any');
        $this->assertEquals('foo', $obj->getFoo());
        $this->assertNull($obj->bar);
        $this->assertTrue($obj->isBaz());
    }