Commit 03e3425
committed
Accept any _testcase as valid
Historically we had a blur between `_test` and `_testcase`, but in
recent versions we have largely solved this. We now expect:
- every test class name to be suffixed with `_test`
- every test class to be final
- every test class to extend a testcase with class name suffixed `_testcase`
- every testcase class to be abstract
Given these parameters, which have been in place for some time and are
checked with phpcs, we can move away from a hardcoded list of accepted
testcases, and move towards a regular expression based on the name.
There are still some uses of the legacy names, but we can reduce them
and support any _testcase class.1 parent 87c1bf8 commit 03e3425
File tree
2 files changed
+6
-22
lines changed- tests
- verify_phpunit_xml
2 files changed
+6
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | 51 | | |
55 | | - | |
56 | | - | |
57 | 52 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 53 | | |
65 | 54 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 55 | | |
70 | | - | |
71 | 56 | | |
72 | 57 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 58 | + | |
77 | 59 | | |
78 | 60 | | |
79 | 61 | | |
| |||
105 | 87 | | |
106 | 88 | | |
107 | 89 | | |
| 90 | + | |
108 | 91 | | |
109 | 92 | | |
| 93 | + | |
110 | 94 | | |
111 | 95 | | |
112 | 96 | | |
| |||
0 commit comments