From 4fe9785bc8165eaef43dfb8324e8a27e42b3347a Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 27 Mar 2021 16:07:25 -0700
Subject: [PATCH] WP's unit tests don't yet work with the version of PHPUnit
 that works with PHP 8

---
 plugins/templates/before-script.yml | 2 +-
 plugins/templates/matrix.yml        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/templates/before-script.yml b/plugins/templates/before-script.yml
index 410aecc..6cbeb10 100644
--- a/plugins/templates/before-script.yml
+++ b/plugins/templates/before-script.yml
@@ -5,7 +5,7 @@ before_script:
   # PHPUnit
   - |
     if [[ $(php -v) =~ "PHP 8." ]]; then
-      composer global require "phpunit/phpunit=7.*"
+      composer global require "phpunit/phpunit=9.*"
     elif [[ $(php -v) =~ "PHP 7." ]]; then
       composer global require "phpunit/phpunit=6.1.*"
     elif [[ $(php -v) =~ "PHP 5.6" ]]; then
diff --git a/plugins/templates/matrix.yml b/plugins/templates/matrix.yml
index d8f1e94..14f6daa 100644
--- a/plugins/templates/matrix.yml
+++ b/plugins/templates/matrix.yml
@@ -71,6 +71,7 @@ PHPunit:PHP8.0:MySQL:
   script:
     - find . -type "f" -iname "*.php" | xargs -L "1" php -l
     - phpunit
+  allow_failure: true
 
 PHPCS:
   stage: test
-- 
GitLab