PhpSpreadsheet/tests/PhpSpreadsheetTests
oleibman 7ddf6ccf41
PrintArea Causes Exception
I wanted to investigate #1523, but I couldn't duplicate its results
because the sample code in the issue caused an Exception to be thrown.
The exception happened because, when the Print Range Set method is
set to Insert (as oppposed to Overwrite), and the Print Range is
empty, it is created with a leading or trailing comma, and Writer/Xlsx
objects. This is, in a sense, a user error, but the software should
be more resilient. This can be accomplished by ensuring that no
leading or trailing comma is generated when Print Range is empty.

This code change fixes that problem. Since I couldn't reproduce the
original, I can't say for sure that it fixes it. However, with the
sample code provided, I can write a spreadsheet which Excel reads
without any problems, so it probably fixes the original.

Closes  #1544
Fixes #1523
2020-07-26 12:15:57 +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 Merge branch 'master' into Page-Setup-Page-Order 2020-07-19 12:57:48 +02: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