Skip to content

Commit 8b9d95e

Browse files
committed
Fix pathological test suite failing not loading extensions in CI
1 parent 5156796 commit 8b9d95e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/pathological/test.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,12 @@
291291
$timeout = \max(5, \min(60, $timeout));
292292
}
293293

294-
$command = ['php', '-n', 'convert.php'];
294+
if (isset($_ENV['CI']) || isset($_SERVER['CI'])) {
295+
$command = ['php', 'convert.php'];
296+
} else {
297+
$command = ['php', '-n', 'convert.php'];
298+
}
299+
295300
if (isset($case['extension'])) {
296301
$command[] = $case['extension'];
297302
}

0 commit comments

Comments
 (0)