diff --git a/tests/pathological/test.php b/tests/pathological/test.php index 83936ec73..a911f3a33 100755 --- a/tests/pathological/test.php +++ b/tests/pathological/test.php @@ -291,7 +291,12 @@ $timeout = \max(5, \min(60, $timeout)); } - $command = ['php', '-n', 'convert.php']; + if (isset($_ENV['CI']) || isset($_SERVER['CI'])) { + $command = ['php', 'convert.php']; + } else { + $command = ['php', '-n', 'convert.php']; + } + if (isset($case['extension'])) { $command[] = $case['extension']; }