Skip to content

Commit dd57919

Browse files
shyimnicolas-grekas
authored andcommitted
Fix testMemoryLimit on PHP installed using Nix
1 parent c824772 commit dd57919

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ScriptExecutorTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ public function testMemoryLimit(): void
3939

4040
$arguments = $phpFinder->findArguments();
4141
$ini = php_ini_loaded_file();
42-
$arguments[] = "--php-ini={$ini}";
42+
43+
if (false !== $ini) {
44+
$arguments[] = "--php-ini={$ini}";
45+
}
46+
4347
$arguments[] = "-d memory_limit={$memoryLimit}";
4448

4549
$phpArgs = implode(' ', array_map([ProcessExecutor::class, 'escape'], $arguments));

0 commit comments

Comments
 (0)