PhpSpreadsheet/samples
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
..
Autofilter Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Basic Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
Calculations Merge all examples together 2017-10-01 17:48:59 +09:00
Chart Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
Pdf Simplify IOFactory to rely on autoloading 2017-10-22 01:54:14 +09:00
Reader Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Reading_workbook_data Upgrade to latest PHP_CodeSniffer 2018-08-06 11:02:16 +09:00
bootstrap Reorganize code samples 2016-09-01 01:17:13 +09:00
images Add missing sample image 2016-11-28 00:53:19 +09:00
templates Improve Coverage for Gnumeric (#1517) 2020-06-19 20:34:02 +02:00
Bootstrap.php Keep sample bootstrap purely in samples 2020-05-17 18:51:13 +09:00
Header.php Keep sample bootstrap purely in samples 2020-05-17 18:51:13 +09:00
index.php Drop PHP 7.1 2020-04-27 18:42:32 +09:00