Commit 824d809
tests: Rename and abstractify custom TestCase base classes (#41935)
PHPUnit 10+ requires that test class names match the filename, PSR-4
style. We've written a PHPUnit sniff to help find mismatches, but to
work properly it needs any custom TestCase base classes to be abstract
and have names ending in "TestCase" or "TestBase".
This PR adds `abstract` where necessary and renames classes where
necessary.
In a few places this has already caused other existing PHPUnit rules to
start fixing things. 😀
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13500864408
Upstream-Ref: Automattic/jetpack@18072cc1 parent 78f5a26 commit 824d809
3 files changed
+6
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments