From 59b53755159faf8e99fb2833a84c8f18491abe04 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 15 Mar 2023 16:16:00 -0700 Subject: [PATCH] PHPUnit - Allow env-var to specify version (for mixer tests) --- tools/mixin/bin/mixer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/mixin/bin/mixer b/tools/mixin/bin/mixer index 627fdaa9b6..7d688c7da8 100755 --- a/tools/mixin/bin/mixer +++ b/tools/mixin/bin/mixer @@ -196,7 +196,8 @@ function deep_copy(array $srcDirs, string $targetDir): void { function phpunit(array $args = []) { $argString = implode(' ' , array_map('escapeshellarg', $args)); - passthru_ok('phpunit8 ' . $argString); + $phpunit = getenv('PHPUNIT') ?: 'phpunit8'; + passthru_ok($phpunit . ' ' . $argString); } function passthru_ok($cmd) { -- 2.25.1