Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YoastCS rules: enforce final classes for all test files
... while allowing `abstract` TestCases. Note: the typical/default "Doubles" directories within the "tests" directory are exempt from this rule as "Double" classes are often still combined with mocking and making the class `final` would break those tests. Related to 303 Impact on Yoast packages: | Plugin/Tool | Errors/Warnings | |-------------------|-----------------| | PHPUnit Polyfills | 25 (fixtures for the tests, these will be exempt) | WP Test Utils | 9 (mostly fixtures for the tests) | YoastCS | -- | WHIP | 9 | Yoast Test Helper | -- | Duplicate Post | 25 | Yst ACF | 10 | Yst WooCommerce | 25 | Yst News | 13 | Yst Local | 11 | Yst Video | 101 | Yst Premium | 126 | Yst Free | 647
- Loading branch information