public function testDecodeScalarRootAttributes() {
$source = '<?xml version="1.0"?>' . "\n" . '<person gender="M">Peter</person>' . "\n";
$expected = array(
'#' => 'Peter',
'@gender' => 'M',
);
$this
->assertEquals($expected, $this->encoder
->decode($source, 'xml'));
}