public function getArray()
{
if (!$this->_dataArray && $this->_dataObject) {
$this->_dataArray = $this->_convertToArray();
}
return $this->_dataArray;
}
/** * testConvertToArray * * @since 3.0.0 */ public function testConvertToArray() { /* setup */ $reader = new Reader(); $reader->loadXML('tests/provider/reader.xml'); /* actual */ $actual = $reader->getArray(); /* compare */ $this->assertEquals('1', $actual['@attributes']['id']); }