diff --git a/plugins/templates/before-script.yml b/plugins/templates/before-script.yml
index 84dacb59add69cd4dd88d51aa8deaa6945e8197d..f0a2802aeb358a3db61b5d968cca1ce053b4abd8 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