Commit cead4a6
committed
Enable xdebug coverage mode for php8 in travis
For php 8, we need to manually set the new `xdebug.mode` option to
enable coverage mode, but it won't work if we simply do something like
`php -d xdebug.mode=coverage composer infection` because InfectionPHP
spawns new processes that would lose that option.
To provide for this, there's the `--initial-tests-php-options` shell
option to infection that will pass that on when it calls PHP for the
initial test run, which is the only time we need coverage enabled.
Since this is only required in PHP 8 and there are no other parts using
the `PHPUNIT_LEGACY` env variable, we can instead test against php 7.x
to remove the need for PHPUNIT_LEGACY entirely.1 parent 958cfff commit cead4a6
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
0 commit comments