Skip to content

Commit

Permalink
Fix pathological test suite failing not loading extensions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Dec 7, 2024
1 parent 5156796 commit 8b9d95e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/pathological/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 8b9d95e

Please sign in to comment.