public function GetSetMethodNormalizerTest::testConstructorDenormalize 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::testConstructorDenormalize()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ GetSetMethodNormalizerTest.php, line 180
Class
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testConstructorDenormalize() {
$obj = $this->normalizer
->denormalize(array(
'foo' => 'foo',
'bar' => 'bar',
'baz' => true,
'fooBar' => 'foobar',
), __NAMESPACE__ . '\\GetConstructorDummy', 'any');
$this
->assertEquals('foo', $obj
->getFoo());
$this
->assertEquals('bar', $obj
->getBar());
$this
->assertTrue($obj
->isBaz());
}