PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation
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
..
Functions PHP 7.4 compatibility 2019-11-30 00:12:46 +01:00
CalculationTest.php Avoid test without assertion 2019-11-10 17:05:18 +01:00
DefinedNameConfusedForCellTest.php Do not confuse defined names and cell refs 2019-11-30 16:10:43 +01:00
FinancialTest.php Validate XIRR inputs and return correct error values 2019-11-17 21:17:12 +01:00
FunctionsTest.php Upgrade to phpunit 7.5 2019-07-24 23:45:43 -07:00
LookupRefTest.php More refactoring Excel of Calculation Function Unit Tests 2019-07-27 16:35:27 +02:00