PhpSpreadsheet/tests/PhpSpreadsheetTests
Owen Leibman 9552172b85
Do not confuse defined names and cell refs
CALCULATION_REGEXP_CELLREF is not sufficiently robust.
It treats some perfectly legal defined names, e.g. A1A, as cell refs.
When the Xlsx Writer tries to save a worksheet which uses such a name
in a formula in a cell, it throws an exception.

The new DefinedNameConfusedForCellTest is a simple demonstration.
The Regexp has been changed to ensure the name starts on a Word boundary,
and to make sure it is not followed by a word character or period.
This fixes the problem, and does not appear to cause any regression
problems in the test suite.

Closes #1263
2019-11-30 16:10:43 +01:00
..
Calculation Do not confuse defined names and cell refs 2019-11-30 16:10:43 +01:00
Cell Style fix 2019-11-17 20:48:34 +01:00
Chart Custom color for pie and donut charts 2018-12-10 18:43:55 +11:00
Collection - Create unit test (#944) 2019-04-15 21:39:11 +02:00
Custom Test fixes for PHP 7.4 stricter behaviour 2019-09-20 16:22:08 -07:00
Functional CS Fixes (#962) 2019-04-15 22:49:51 +02:00
Helper Upgrade to phpunit 7.5 2019-07-24 23:45:43 -07:00
Reader Correct column style even when using rowspan 2019-11-30 15:40:42 +01:00
Shared Upgrade to phpunit 7.5 2019-07-24 23:45:43 -07:00
Style Chained operations on cell ranges involving borders are now possible 2018-07-15 12:19:54 +09:00
Worksheet Add test for PhpOffice\PhpSpreadsheet\Worksheet\ColumnDimension 2019-11-17 21:19:50 +01:00
Writer PHP 7.4 compatibility 2019-11-30 00:12:46 +01:00
IOFactoryTest.php Add test for IOFactory::load 2019-11-17 18:39:38 +01:00
ReferenceHelperTest.php Add ReferenceHelper::cellSort and ReferenceHelper::cellReverseSort tests 2019-11-17 20:50:55 +01:00
SettingsTest.php Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#271) 2017-11-09 00:48:01 +09:00
SpreadsheetTest.php Cover getSheetByName() with tests for name with quote and spaces 2019-07-27 22:46:41 -07:00