diff --git a/tests/mock/SPC_store.php b/tests/mock/SPC_store.php index 6969e128..9ee59093 100644 --- a/tests/mock/SPC_store.php +++ b/tests/mock/SPC_store.php @@ -63,5 +63,13 @@ function f_passthru(string $cmd): bool return true; } + // allowed commands + $allowed = ['cp', 'copy', 'xcopy']; + foreach ($allowed as $a) { + if (str_starts_with($cmd, $a)) { + \f_passthru($cmd); + return true; + } + } throw new RuntimeException('Invalid tests'); }