PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions
oleibman 5d1ab39def
Replace Tests With Unneeded Mocking (#2465)
Replace mock tests with real ones when possible. The original tests are all still present; they just take place in a more representative scenario.

After this, there will be 4 remaining uses of mocking. Of these, 3 are needed for scenarios which are otherwise hard to test - WebServiceTest, CellsTest, and SampleCoverageTest. For the other one, AutoFilterTest, I just can't figure out what it's trying to accomplish, so have left it alone.

This change is almost entirely restricted to tests. There is a one-line change in src. When the first argument passed to OFFSET is null or nullstring, the returned value is currently 0. However, according to the documentation for Excel, it should be `#VALUE!`. The code is changed accordingly.
2021-12-31 13:24:43 -08:00
..
Database Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
DateTime Cache Results for Tests Involving NOW and TODAY Functions (#2311) 2021-10-03 11:06:47 -07:00
Engineering Reduce PHPStan error in tests 2021-04-12 11:10:23 +09: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
Logical Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
LookupRef Replace Tests With Unneeded Mocking (#2465) 2021-12-31 13:24:43 -08:00
MathTrig 2 Tests vs. Scrutinizer/Phpstan 2021-07-01 11:15:02 +02:00
Statistical Fix for Issue 2158 (AverageIf Calculation Problem) (#2160) 2021-06-15 09:54:57 +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