'FooBar' => [
'Baz' => 'Ed',
'@gd:id' => 1,
],
],
],
];
}
protected function getObject()
{
$obj = new Dummy();
$obj->foo = 'foo';
$obj->bar = ['a', 'b'];
$obj->baz = ['key' => 'val', 'key2' => 'val', 'A B' => 'bar', 'item' => [['title' => 'title1'], ['title' => 'title2']], 'Barry' => ['FooBar' => ['Baz' => 'Ed', '@id' => 1]]];
$obj->qux = '1';
return $obj;
}
public function testEncodeXmlWithBoolValue()
{
$expectedXml = <<<'XML'