'foo' => 'foo', 'bar' => 'bar', 'baz' => true, 'fooBar' => 'foobar'
],
ObjectDummy::
class,
'any'
);
$this->
assertEquals('foo',
$obj->
getFoo());
$this->
assertEquals('bar',
$obj->bar
);
$this->
assertTrue($obj->
isBaz());
} public function testDenormalizeEmptyXmlArray() { $normalizer =
$this->
getDenormalizerForObjectToPopulate();
$obj =
$normalizer->
denormalize( ['bar' => ''
],
ObjectDummy::
class,
'xml'
);
$this->
assertIsArray($obj->bar
);
$this->
assertEmpty($obj->bar
);
} public function testDenormalizeWithObject() {