public function ObjectNormalizerTest::testConstructorWithObjectDenormalize 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::testConstructorWithObjectDenormalize()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ ObjectNormalizerTest.php, line 170
Class
- ObjectNormalizerTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testConstructorWithObjectDenormalize() {
$data = new \stdClass();
$data->foo = 'foo';
$data->bar = 'bar';
$data->baz = true;
$data->fooBar = 'foobar';
$obj = $this->normalizer
->denormalize($data, __NAMESPACE__ . '\\ObjectConstructorDummy', 'any');
$this
->assertEquals('foo', $obj
->getFoo());
$this
->assertEquals('bar', $obj->bar);
}