PhpSpreadsheet/tests/PhpSpreadsheetTests/Reader
oleibman afd070a756 Handle ConditionalStyle NumberFormat When Reading Xlsx File (#1296)
* Handle ConditionalStyle NumberFormat When Reading Xlsx File

ReadStyle in Reader/Xlsx/Styles.php expects numberFormat to be a string.
However, when reading conditional style in Xlsx file, NumberFormat
   is actually a SimpleXMLElement, so is not handled correctly.
While testing this change, it turned out that reader always expects
   that there is a "SharedString" portion of the XML, which is not
   true for spreadsheets with no string data, which causes a
   run-time message.
Likewise, when conditional number format is not one of the built-in
   formats, a run-time message is issued because 'isset' is used
   to determine existence rather than 'array_key_exists'.
The new workbook added to the testing data demonstrates both those
   problems (prior to the code changes).

* Move Comment to Resolve Conflict

Github reports conflict involving placement of one comment statement.

* Respond to Scrutinizer Style Suggestion

Change detection for empty SimpleXMLElement.
2020-01-04 00:10:41 +01:00
..
Security Migrate away from deprecated PHPUnit asserts 2019-07-25 10:15:53 -07:00
CondNumFmtTest.php Handle ConditionalStyle NumberFormat When Reading Xlsx File (#1296) 2020-01-04 00:10:41 +01:00
CsvTest.php Ignore escaped enclosures within an enclosure when inferring csv separator (#906) 2019-02-25 23:20:50 +01:00
HtmlTest.php Correct column style even when using rowspan 2019-11-30 15:40:42 +01:00
OddColumnReadFilter.php Fix column names if read filter calls in XLSX reader skip columns 2018-12-10 20:00:26 +11:00
OdsTest.php Migrate away from deprecated PHPUnit asserts 2019-07-25 10:15:53 -07:00
XlsTest.php Xls file threw exception during open by Xls reader 2018-10-07 18:49:01 +11:00
XlsxTest.php Migrate away from deprecated PHPUnit asserts 2019-07-25 10:15:53 -07:00
XmlTest.php phpcs cleanup 2018-11-20 08:18:35 +01:00