public function testEncodeScalarRootAttributes() {
$array = array(
'#' => 'Paul',
'@gender' => 'm',
);
$expected = '<?xml version="1.0"?>' . "\n" . '<response gender="m">Paul</response>' . "\n";
$this
->assertEquals($expected, $this->encoder
->encode($array, 'xml'));
}