diff --git a/4dev/checking/phpunit.sh b/4dev/checking/phpunit.sh index b0ce4149..ec852f14 100755 --- a/4dev/checking/phpunit.sh +++ b/4dev/checking/phpunit.sh @@ -2,6 +2,7 @@ base="/storage/var/www/html/developers/clemens/core_data/php_libraries/trunk/"; # -c phpunit.xml # --testdox # call with "t" to give verbose testdox output +# SUPPORTED: https://www.php.net/supported-versions.php # call with 7.3, 7.4, 8.0, 8.1 to force a certain php version opt_testdox=""; @@ -10,17 +11,19 @@ if [ "${1}" = "t" ] || [ "${2}" = "t" ]; then fi; php_bin=""; case "${1}" in - "7.3") php_bin="/usr/bin/php7.3 "; ;; + # "7.3") php_bin="/usr/bin/php7.3 "; ;; "7.4") php_bin="/usr/bin/php7.4 "; ;; "8.0") php_bin="/usr/bin/php8.0 "; ;; "8.1") php_bin="/usr/bin/php8.1 "; ;; + *) echo "Not support PHP: ${1}"; exit; ;; esac; if [ -z "${php_bin}" ]; then case "${2}" in - "7.3") php_bin="/usr/bin/php7.3 "; ;; + # "7.3") php_bin="/usr/bin/php7.3 "; ;; "7.4") php_bin="/usr/bin/php7.4 "; ;; "8.0") php_bin="/usr/bin/php8.0 "; ;; "8.1") php_bin="/usr/bin/php8.1 "; ;; + *) echo "Not support PHP: ${1}"; exit; ;; esac; fi;