From fcc64db03087a4ddce8f9a51fdf5c8ee97eca2ca Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 6 Apr 2026 23:12:35 -0400 Subject: [PATCH] Fix run.sh to forward CLI args to phpunit and error on unhandled phpunit versions --- tests/run.sh | 2 +- tests/run_phpunit.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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.