PhpSpreadsheet/tests/PhpSpreadsheetTests
oleibman 735103c120
Improve Coverage for ODS Reader (#1545)
* Improve Coverage for ODS Reader

Reader/ODS/Properties is now 100% covered.
Reader/ODS is covered except for 1 statement. As the original author
put it, "table-header-rows TODO: figure this out ... I'm not sure that
PhpExcel has an API for this". I'm still thinking about it, but, so far,
I agree with the author.

There are minimal code changes.
- Several places test !zip->open() to see whether the test failed.
  However, zip->open() returns true or a string, so the test never
  detects failure. Change to zip->open() !== true. No previous tests.
- Suppress warning messages from simplexml_load_string (there had
  been no tests for invalid xml).
- One document property was misnamed, and one non-existent property
  was tested for.

I added a number of tests, creating an ODS directory, and moving
OdsTest to that directory.

* Scrutinizer Recommendation

Unused variable in one test.

* Update CHANGELOG

Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
2020-07-26 12:40:49 +09:00
..
Calculation Additional statistical unit tests for non-happy path (#1594) 2020-07-25 21:58:08 +02:00
Cell Restoring State After Static Changes in Tests (#1571) 2020-07-15 13:23:00 +02:00
Chart Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Collection Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Custom Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Functional PrintArea Causes Exception 2020-07-26 12:15:57 +09:00
Helper Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
Reader Improve Coverage for ODS Reader (#1545) 2020-07-26 12:40:49 +09:00
Shared Restoring State After Static Changes in Tests (#1571) 2020-07-15 13:23:00 +02:00
Style Restoring State After Static Changes in Tests (#1571) 2020-07-15 13:23:00 +02:00
Worksheet Stricter visibility 2020-07-19 12:30:31 +09:00
Writer Restoring State After Static Changes in Tests (#1571) 2020-07-15 13:23:00 +02:00
DocumentGeneratorTest.php Added support for the WEBSERVICE function (#1409) 2020-06-29 10:17:58 +09:00
IOFactoryTest.php Improve Coverage for Gnumeric (#1517) 2020-06-19 20:34:02 +02:00
ReferenceHelperTest.php Additional Unit Tests (#1582) 2020-07-14 10:58:50 +02:00
SettingsTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
SpreadsheetTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00