PhpSpreadsheet/tests/PhpSpreadsheetTests/Worksheet
oleibman 2a12587f05
AutoFilter Improvements (#2393)
* AutoFilter Improvements

Fix issue #2378. The following changes are made:
- NotEqual tests must be part of a custom filter. Documentation has been changed to indicate that.
- Method setAndOr was replaced by setJoin some time ago. Documentation now reflects that change.
- Documentation to indicate that string filters are not case-sensitive, same as in Excel.
- Filters testing against numeric value now include a numeric test (not numeric for not equal, numeric for all others).
- String filter had previously treated everything as a test for "equal". It now handles "not equal" and the variants of "greater/less" with or without "equal".
- Documentation correctly stated that no more than 2 rules are allowed in a custom filter. Code did not enforce this restriction. It now does, throwing an exception if an attempt is made to add a third rule.
- Deleted a lot of comments in Rule.php to make it easier to see what is not yet implemented (between, begins with, etc.). I may take these on in future.
- Added a number of tests for the new functionality.

* Not Sure Why Phpstan Results Differ Local vs Github

Let's see if this change suffices.

* Phpstan Still

Not sure how to convince it. Let's try this.

* Phpstan Solved

Figured out the problem on my local machine. Expect this to work.
2021-11-16 07:46:07 -08:00
..
AutoFilter AutoFilter Improvements (#2393) 2021-11-16 07:46:07 -08:00
ColumnCellIterator2Test.php Let's see what Scrutinizer makes of these changes (#1859) 2021-02-18 12:39:24 +01:00
ColumnCellIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
ColumnDimensionTest.php Html import dimension conversions (#2152) 2021-06-11 17:29:49 +02:00
ColumnIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
ColumnTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
DrawingTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
IteratorTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
PageMarginsTest.php Stricter visibility 2020-07-19 12:30:31 +09:00
ProtectionTest.php Password and hash are exclusive 2020-05-31 22:36:37 +09:00
RowCellIterator2Test.php Let's see what Scrutinizer makes of these changes (#1859) 2021-02-18 12:39:24 +01:00
RowCellIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
RowDimensionTest.php Html import dimension conversions (#2152) 2021-06-11 17:29:49 +02:00
RowIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
RowTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
WorksheetNamedRangesTest.php Now That SettingsTest Is Well-Behaved 2021-06-30 13:15:20 -07:00
WorksheetTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00