protected function assertRowsEqual(array $expectedRowData, Sheet $sheet) { $actualRowData = array(); foreach ($sheet->getRows() as $rowIndex => $row) { foreach ($row as $column => $value) { $actualRowData[$rowIndex][$column] = $value; } } return $this->assertEquals($expectedRowData, $actualRowData, 'Sheet Rows from ' . $sheet); }