Add support for empty sheets

This commit is contained in:
Adrien Loison committed 2015-01-26 11:22:09 -08:00
1 parent 5e199009e6
commit 6bc9a18e9b
3 files changed
+14 -3

No files matched your search

+9
View File
@@ -165,6 +165,15 @@ class XLSXTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedFirstRow, $allRows[0], 'Entities should be ignored when reading XML files.');
}
/**
* @return void
*/
public function testReadShouldBeAbleToProcessEmptySheets()
{
$allRows = $this->getAllRowsForFile('sheet_with_no_cells.xlsx');
$this->assertEquals([], $allRows, 'Sheet with no cells should be correctly processed.');
}
/**
* @param string $fileName
* @return array All the read rows the given file