From 59f252372e412bfb1780be04ddba627f00461d5b Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Thu, 15 May 2025 18:50:40 -0700
Subject: [PATCH] Adjust PHPUnit matrix based on latest failures

---
 plugins/templates/before-script.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/plugins/templates/before-script.yml b/plugins/templates/before-script.yml
index 84dacb5..f0a2802 100644
--- a/plugins/templates/before-script.yml
+++ b/plugins/templates/before-script.yml
@@ -6,8 +6,16 @@ before_script:
   - |
     if [[ $(php -v) =~ "PHP 8." ]]; then
       composer global require "phpunit/phpunit=9.*"
-    elif [[ $(php -v) =~ "PHP 7." ]]; then
-      composer global require "phpunit/phpunit=6.1.*"
+    elif [[ $(php -v) =~ "PHP 7.4" ]]; then
+      composer global require "phpunit/phpunit=7.5.*"
+    elif [[ $(php -v) =~ "PHP 7.3" ]]; then
+      composer global require "phpunit/phpunit=7.5.*"
+    elif [[ $(php -v) =~ "PHP 7.2" ]]; then
+      composer global require "phpunit/phpunit=7.5.*"
+    elif [[ $(php -v) =~ "PHP 7.1" ]]; then
+      composer global require "phpunit/phpunit=7.5.*"
+    elif [[ $(php -v) =~ "PHP 7.0" ]]; then
+      composer global require "phpunit/phpunit=6.4.*"
     elif [[ $(php -v) =~ "PHP 5.6" ]]; then
       composer global require "phpunit/phpunit=5.7.*"
     fi
-- 
GitLab