public function ObjectNormalizerTest::testConstructorDenormalizeWithOptionalDefaultArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\ObjectNormalizerTest::testConstructorDenormalizeWithOptionalDefaultArgument()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ ObjectNormalizerTest.php, line 158
Class
- ObjectNormalizerTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testConstructorDenormalizeWithOptionalDefaultArgument() {
if (PHP_VERSION_ID <= 50316) {
$this
->markTestSkipped('See https://bugs.php.net/62715');
}
$obj = $this->normalizer
->denormalize(array(
'bar' => 'test',
), __NAMESPACE__ . '\\ObjectConstructorArgsWithDefaultValueDummy', 'any');
$this
->assertEquals(array(), $obj
->getFoo());
$this
->assertEquals('test', $obj
->getBar());
}