PhpSpreadsheet/tests/data/Calculation
oleibman 4001c89aaa
isFormula Referencing Sheet With Space in Title (#2306)
* isFormula Referencing Sheet With Space in Title

See issue #2304. User sets a cell to `ISFORMULA(cell)`, where `cell` exists on a sheet whose title contains a space, and receives an error. Coordinates are not being passed correctly to Functions::isFormula; in particular, the sheet name is not enclosed in apostrophes, e.g. `Sheet Name!A1` rather than `'Sheet Name'!A1`. (Note that sheet name was not specified in Cell; PhpSpreadsheet adds it before calling isFormula.) Sheets without embedded spaces (or other non-word characters) are handled correctly with or without apostrophes, but spaces require surrounding apostrophes.

As part of this investigation, I determined that Excel handles defined names and cell ranges in ISFORMULA (subject to spills), and that PhpSpreadsheet does not. It is changed to handle them. In the absence of spill support, it will use only the first cell in the range.

Existing tests for ISFORMULA used mocking unneccesarily. They are moved to a separate test member, and mocking is no longer used.

* PhpUnit and Jpgraph

35_Char_render.php had previously been a problem only for PHP8+. It is now a problem for PHP7.4, and will therefore be skipped all the time.
2021-10-03 10:04:48 -07:00
..
DateTime Calculation engine empty arguments (#2143) 2021-06-10 08:49:53 +02:00
DefinedNames Named formula implementation, and improved handling of Defined Names generally (#1535) 2020-07-26 12:00:06 +02:00
Engineering New Bessel Algorithm, providing a higher degree of accuracy and precision (#1946) 2021-03-24 13:29:54 +01:00
Financial Additional unit tests for negative interest rates in the financial functions, and also tests using negative present/future value arguments (#2166) 2021-06-16 14:16:48 +02:00
Functions isFormula Referencing Sheet With Space in Title (#2306) 2021-10-03 10:04:48 -07:00
Logical Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
LookupRef Use WildcardMatch 2021-06-24 10:09:21 +02:00
MathTrig Fix for Issue 2158 (AverageIf Calculation Problem) (#2160) 2021-06-15 09:54:57 +02:00
Statistical A couple of extra unit tests 2021-05-14 14:35:23 +02:00
TextData TextData - Minor Changes, Test Coverage (#2151) 2021-06-15 08:37:17 +02:00
Web Initial implementation of the URLENCODE() web function (#2031) 2021-04-28 17:10:36 +02:00
Calculation.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
FunctionsAsString.php MATCH with a static array should return the position of the found value based on the values submitted. 2020-04-26 22:09:31 +09:00
Translations.php Additional language data, and improved automated build of translation files for Calculation Engine locale 2021-05-20 20:41:09 +02:00