diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php index 366c480dc..3722c5f50 100644 --- a/tests/Utils/CLITest.php +++ b/tests/Utils/CLITest.php @@ -226,7 +226,7 @@ public function testStdinPipe($cmd, $result) public function stdinParams() { if (defined('PHP_BINARY')) { - $binPath = PHP_BINARY . ' ' . dirname(__DIR__, 2) . '/bin/'; + $binPath = PHP_BINARY . ' ' . realpath(dirname(__DIR__) . '/../') . '/bin/'; } else { $binPath = 'php' . ' ' . realpath(dirname(__DIR__) . '/../') . '/bin/'; }