Commit 3e92a56
committed
test: reset PHP versions after each test class
Required, as test success is currently order-dependent
and may prevent running specific subgroups of tests.
The reason being that the PHP version is set via simple
parameters, which are global and previously unable to be
unset. Some tests required setting the specific version of PHP,
which would end up pinning that version until the next test
that required a specific version. If the prior version was too
low, it could cause later tests not to execute at all, breaking
things.
You could not set the version parameter to `null`
because it's always accessed via `provideIntParameter(...)`,
which does type-checking.1 parent 6a31016 commit 3e92a56
2 files changed
Lines changed: 10 additions & 0 deletions
File tree
- src
- Configuration/Parameter
- Testing/PHPUnit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments