diff --git a/tests/end-to-end/log-junit-phpt.phpt b/tests/end-to-end/log-junit-phpt.phpt index d5a230f04a7..d3310dd547c 100644 --- a/tests/end-to-end/log-junit-phpt.phpt +++ b/tests/end-to-end/log-junit-phpt.phpt @@ -5,7 +5,7 @@ phpunit --log-junit php://stdout ../end-to-end/phpt-stderr.phpt $_SERVER['argv'][1] = '--no-configuration'; $_SERVER['argv'][2] = '--log-junit'; $_SERVER['argv'][3] = 'php://stdout'; -$_SERVER['argv'][4] = __DIR__ . '/../end-to-end/phpt-stderr.phpt'; +$_SERVER['argv'][4] = \realpath(__DIR__ . '/../end-to-end/phpt-stderr.phpt'); require __DIR__ . '/../bootstrap.php'; PHPUnit\TextUI\Command::main(); diff --git a/tests/end-to-end/log-teamcity-phpt.phpt b/tests/end-to-end/log-teamcity-phpt.phpt index 0fb9167891f..70fa1fa9779 100644 --- a/tests/end-to-end/log-teamcity-phpt.phpt +++ b/tests/end-to-end/log-teamcity-phpt.phpt @@ -5,7 +5,7 @@ phpunit --log-teamcity php://stdout ../end-to-end/phpt-stderr.phpt $_SERVER['argv'][1] = '--no-configuration'; $_SERVER['argv'][2] = '--log-teamcity'; $_SERVER['argv'][3] = 'php://stdout'; -$_SERVER['argv'][4] = __DIR__ . '/../end-to-end/phpt-stderr.phpt'; +$_SERVER['argv'][4] = \realpath(__DIR__ . '/../end-to-end/phpt-stderr.phpt'); require __DIR__ . '/../bootstrap.php'; PHPUnit\TextUI\Command::main();