public function testDecodeArray() {
$source = '<?xml version="1.0"?>' . "\n" . '<response>' . '<people>' . '<person><firstname>Benjamin</firstname><lastname>Alexandre</lastname></person>' . '<person><firstname>Damien</firstname><lastname>Clay</lastname></person>' . '</people>' . '</response>' . "\n";
$expected = array(
'people' => array(
'person' => array(
array(
'firstname' => 'Benjamin',
'lastname' => 'Alexandre',
),
array(
'firstname' => 'Damien',
'lastname' => 'Clay',
),
),
),
);
$this
->assertEquals($expected, $this->encoder
->decode($source, 'xml'));
}