public function GetSetMethodNormalizerTest::testConstructorDenormalizeWithOptionalDefaultArgument 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::testConstructorDenormalizeWithOptionalDefaultArgument()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ GetSetMethodNormalizerTest.php, line 210
Class
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__ . '\\GetConstructorArgsWithDefaultValueDummy', 'any');
$this
->assertEquals(array(), $obj
->getFoo());
$this
->assertEquals('test', $obj
->getBar());
}