Add missing stderr redirection

This seems to have been overlooked in
6c0e6af47a, and results in the test suite
being polluted on machines where phpdbg is not installed.
I updated the code to mimic other occurences of exec in this file.
This commit is contained in:
Grégoire Paris 2018-08-11 21:30:31 +02:00
parent e279e2a50d
commit d67b86b9e7
No known key found for this signature in database
GPG Key ID: 24D48B8012B116BF
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class CoverageListenerTest extends TestCase
$this->markTestSkipped('This test cannot be run on HHVM.');
}
exec('type phpdbg', $output, $returnCode);
exec('type phpdbg 2> /dev/null', $output, $returnCode);
if (\PHP_VERSION_ID >= 70000 && 0 === $returnCode) {
$php = 'phpdbg -qrr';