public function PropertyNormalizerTest::testDenormalize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/PropertyNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\PropertyNormalizerTest::testDenormalize()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ PropertyNormalizerTest.php, line 55
Class
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testDenormalize() {
$obj = $this->normalizer
->denormalize(array(
'foo' => 'foo',
'bar' => 'bar',
), __NAMESPACE__ . '\\PropertyDummy', 'any');
$this
->assertEquals('foo', $obj->foo);
$this
->assertEquals('bar', $obj
->getBar());
}