public function GetSetMethodNormalizerTest::testConstructorWithObjectDenormalize 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::testConstructorWithObjectDenormalize()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ GetSetMethodNormalizerTest.php, line 244
Class
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__ . '\\GetConstructorDummy', 'any');
$this
->assertEquals('foo', $obj
->getFoo());
$this
->assertEquals('bar', $obj
->getBar());
}