public function GetSetMethodNormalizerTest::testConstructorDenormalizeWithMissingOptionalArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\GetSetMethodNormalizerTest::testConstructorDenormalizeWithMissingOptionalArgument()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ GetSetMethodNormalizerTest.php, line 200
Class
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testConstructorDenormalizeWithMissingOptionalArgument() {
$obj = $this->normalizer
->denormalize(array(
'foo' => 'test',
'baz' => array(
1,
2,
3,
),
), __NAMESPACE__ . '\\GetConstructorOptionalArgsDummy', 'any');
$this
->assertEquals('test', $obj
->getFoo());
$this
->assertEquals(array(), $obj
->getBar());
$this
->assertEquals(array(
1,
2,
3,
), $obj
->getBaz());
}