diff --git a/.github/workflows/build-test-measure.yml b/.github/workflows/build-test-measure.yml index 39c090081c9..641ffaf82a0 100644 --- a/.github/workflows/build-test-measure.yml +++ b/.github/workflows/build-test-measure.yml @@ -550,6 +550,7 @@ jobs: composer require --ignore-platform-reqs --no-interaction --no-scripts phpunit/php-token-stream:^3.1.3 --with-dependencies elif [[ $PHP_VERSION == "7.3" || $PHP_VERSION == "7.4" || $PHP_VERSION == "8.0" ]]; then echo "Installing PHPUnit 9.3" + composer update --ignore-platform-reqs --no-interaction --no-scripts yoast/phpunit-polyfills --with-dependencies composer require --dev --ignore-platform-reqs phpunit/phpunit:"9.3.*" --with-dependencies elif [[ $WP_VERSION == "latest" || $WP_VERSION == "trunk" || $PHP_VERSION == "8.1" || $PHP_VERSION == "8.2" ]]; then echo "Installing latest version of PHPUnit"