Fix run.sh to forward CLI args to phpunit and error on unhandled phpunit versions

This commit is contained in:
Zach Borboa
2026-04-06 23:12:35 -04:00
parent 5cb14f78f0
commit fcc64db030
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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"
+4
View File
@@ -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.