public function testReadFile() { $file = file_get_contents(__DIR__ . '/_files/code/Magento/Test/etc/widget.xml'); $result = $this->_model->readFile($file); $expected = (include '_files/expectedGlobalArray.php'); $this->assertEquals($expected, $result); }
public function testReadFile() { $file = file_get_contents(__DIR__ . '/_files/orders_and_returns.xml'); $expected = (include __DIR__ . '/_files/expectedGlobalArray.php'); $this->assertEquals($expected, $this->model->readFile($file)); }