public function testEncodeSimpleXML() {
$xml = simplexml_load_string('<firstname>Peter</firstname>');
$array = array(
'person' => $xml,
);
$expected = '<?xml version="1.0"?>' . "\n" . '<response><person><firstname>Peter</firstname></person></response>' . "\n";
$this
->assertEquals($expected, $this->encoder
->encode($array, 'xml'));
}