PhpSpreadsheet/tests/PhpSpreadsheetTests/Style
Mark Baker 4a04499bff
Read conditional styling for cell (#2491)
* Allow single-cell checks on conditional styles, even when the style is configured for a range of cells
* Work on the CellMatcher logic to evaluate Conditionals for a cell based on its value, and identify which conditional styles should be applied
* Refactor style merging and cell matching for conditional formatting into separate classes; this should make it easier to test, and easier to extend for other CF expressions subsequently
* Added support for containsErrors and notContainsErrors
* Initial work on a wizard to help simplify created Conditional Formatting rules, to ensure that the correct expressions are set
* Further work on extending the Conditional Formatting rules to cover more of the options that are available in MS Excel
* Prevent phpcs-fixer from removing class @method annotations, used to identify the signature for magic methods used in Wizard classes
* Implement `fromConditional()`` method to allow the creation of a CF Wizard from an existing Conditional
* Ensure that xlsx Reader picks up the timePeriod attribute for DatesOccurring CF Rules
* Allow Duplicates/Uniques CF Rules to be recognised in the Xlsx Reader
* Basic Xlsx reading of CF Rules/Styles from <extLst><ext><ConditinalFormattings> element, and not just the <ConditinalFormatting> element of the worksheet

* Add some validation for operands passed to the CF Wizards
 - remove any leading ``=` from formulae, because they'll be embedded into other formulae
 - unwrap any string literals from quotes, because that's also handled internally

Handle cross-worksheet cell references in cellReferences and Formulae/Expressions

* re-baseline phpstan

* Update Change Log with details of the CF Improvements
2022-01-22 19:18:26 +01:00
..
ConditionalFormatting Read conditional styling for cell (#2491) 2022-01-22 19:18:26 +01:00
AlignmentTest.php Add exportArray Method for Styles (#1580) 2020-10-26 20:56:24 +01:00
BorderRangeTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
BorderTest.php Add exportArray Method for Styles (#1580) 2020-10-26 20:56:24 +01:00
ColorTest.php Merge branch 'master' into PHP8-Sane-Property-Names 2021-10-31 15:25:01 +09:00
ConditionalTest.php Add exportArray Method for Styles (#1580) 2020-10-26 20:56:24 +01:00
ExportArrayTest.php Fill Pattern Start and End Colors (#2444) 2021-12-18 08:53:23 -08:00
FillTest.php Add exportArray Method for Styles (#1580) 2020-10-26 20:56:24 +01:00
FontTest.php fix: Set font size to 10 when given 0 2021-05-29 11:17:25 +02:00
NumberFormatBuiltinTest.php Add exportArray Method for Styles (#1580) 2020-10-26 20:56:24 +01:00
NumberFormatRoundTest.php Rounding in NumberFormatter (#2399) 2021-11-26 09:05:35 -08:00
NumberFormatTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
StyleTest.php Optimize applyFromArray by caching existing styles (#1785) 2021-10-31 00:55:00 +09:00