PhpSpreadsheet/tests/PhpSpreadsheetTests/Reader
oleibman 73379cdfb1
Improve Coverage for Gnumeric (#1517)
* Improve Coverage for Gnumeric

I believe that both BaseReader and Gnumeric Reader are now 100% covered.

My goal was to use PhpSpreadsheet to load the test file,
save it as Xlsx, and visually compare the two, then add a test
loaded with assertions. Results were generally pretty good,
but there were no tests with assertions. I added a few cells
to exercise some previously uncovered code. Code was extensively
refactored; logic changes are noted below.

Code allowed for specifying document properties in an old format.
I considered removing that, but I found the original spec at
http://www.jfree.org/jworkbook/download/gnumeric-xml.pdf
This allowed me to create an old file, which was not handled
correctly because of namespace differences. The code was corrected
to allow for this difference.

Added support for textRotation.

Mapping of fill types was not correct.

* PHP7.2 Error

One assertion failed under PHP7.2. Apparently there was some change in
the handling of SimpleXMLElement between 7.2 and 7.3. Casting to string
before use eliminates the problem.

* Scrutinizer Recommendations

All minor, solved (hopefully) mostly by casts.

* One Last Scrutinizer Fix

... I hope.
2020-06-19 20:34:02 +02:00
..
Gnumeric Improve Coverage for Gnumeric (#1517) 2020-06-19 20:34:02 +02:00
Security Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Xlsx Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
CondNumFmtTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
CsvContiguousFilter.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
CsvContiguousTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
CsvTest.php CSV Sample File Was Miscoded (#1489) 2020-05-24 19:57:39 +09:00
HtmlTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09: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 Remove undesired annotations 2020-05-18 15:49:29 +09:00
XlsTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Xlsx2Test.php Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
XlsxTest.php Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
XmlTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00