PhpSpreadsheet/tests/PhpSpreadsheetTests
Mikkel Paulson 1853aaac79 Add option to suppress validation of sheet titles (#186)
Add option to suppress validation of sheet titles

Based on a "lowest common denominator" approach to compatibility,
we will continue to enforce a 31-character limit for sheet titles.
However, this limit should not be enforced when loading an existing
file.

Added a new optional parameter to Worksheet::setTitle() and
Worksheet::setCodeName() to suppress validation and massaging,
based on the premise that existing files should be given a
best-effort approach to loading and parsing. Unfortunately, it's
not possible with the current architecture to prevent users from
making use of this functionality, aside from with a strongly-worded
warning.

Added test coverage. I didn't see any existing unit tests of the
Worksheet class, so I created a new test to cover these methods.

Fixes #176
2017-07-14 10:53:13 +02:00
..
Calculation Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Cell Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Chart Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Collection Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Custom Upgrade to PHP-CS-Fixer 2.0 2016-12-22 23:46:26 +09:00
Helper Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Reader Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Shared Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Style Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Worksheet Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
Writer/Ods Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
CalculationTest.php Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
CellTest.php Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
IOFactoryTest.php Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
ReferenceHelperTest.php Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
SampleTest.php Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
SettingsTest.php Make global usage of `use` instead of FQCN 2017-05-18 00:10:16 +02:00
WorksheetTest.php Add option to suppress validation of sheet titles (#186) 2017-07-14 10:53:13 +02:00