diff --git a/tests/run.sh b/tests/run.sh index da6eb88..f139105 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -61,7 +61,7 @@ source "run_syntax_check.sh" source "run_coding_standards_check.sh" -source "run_phpunit.sh" +source "run_phpunit.sh" "$@" source "run_static_analysis_check_phpstan.sh" diff --git a/tests/run_phpunit.sh b/tests/run_phpunit.sh index 46d1e1c..4910c0a 100755 --- a/tests/run_phpunit.sh +++ b/tests/run_phpunit.sh @@ -115,6 +115,10 @@ elif [[ "${phpunit_version}" == "11."* ]]; then elif [[ "${phpunit_version}" == "12."* ]]; then phpunit_v12_shim phpunit_args=" --display-incomplete --display-skipped --display-deprecations --display-errors --display-notices --display-warnings --fail-on-risky ${extra_args}" +else + echo "❌ Error: unhandled phpunit version: ${phpunit_version}" + errors+=("unhandled phpunit version: ${phpunit_version}") + exit 1 fi # Run tests.