Support for missing styles XML file in XLSX

Some files don't have a "styles.xml" file. Excel supports these files, Spout should do too.
This commit is contained in:
Adrien Loison authored and Adrien Loison committed 2019-07-20 16:48:51 +02:00
1 parent 6c4086cf97
commit 1bbfd45b82
5 files changed
+37 -3

No files matched your search

+13
View File
@@ -473,6 +473,19 @@ class ReaderTest extends TestCase
$this->assertEquals($expectedRows, $allRows);
}
/**
* @return void
*/
public function testReadShouldSupportMissingStylesXMLFile()
{
$allRows = $this->getAllRowsForFile('file_with_no_styles_in_workbook_xml.xlsx');
$expectedRows = [
['s1--A1', 's1--B1'],
];
$this->assertEquals($expectedRows, $allRows);
}
/**
* @return void
*/