From d717cfb616db1b988596fbf778b34018c15ff78b Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 2 Jun 2019 13:33:17 +1000 Subject: [PATCH] Try running unit tests on phpunit6 --- tools/scripts/phpunit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/scripts/phpunit b/tools/scripts/phpunit index f3c5d61724..88617e471e 100755 --- a/tools/scripts/phpunit +++ b/tools/scripts/phpunit @@ -13,7 +13,10 @@ if (PHP_SAPI !== 'cli') { die("phpunit can only be run from command line."); } -if (version_compare(PHP_VERSION, '5.6', '>=')) { +if (version_compare(PHP_VERSION, '7.0', '>=')) { + $phpunit = findCommand('phpunit6'); +} +elseif (version_compare(PHP_VERSION, '5.6', '>=')) { $phpunit = findCommand('phpunit5'); } else { -- 2.25.1