Skip to content

Commit

Permalink
Merge pull request #27036 from eileenmcnaughton/phpunit
Browse files Browse the repository at this point in the history
Use phpunit when running on php 7.3+
  • Loading branch information
seamuslee001 authored Aug 10, 2023
2 parents 19f03f3 + 1190eae commit bd65d4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/scripts/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function pickPhpunitCommand() {
if (getenv('PHPUNIT')) {
return getenv('PHPUNIT');
}
elseif (version_compare(PHP_VERSION, '7.3', '>=')) {
return 'phpunit9';
}
elseif (version_compare(PHP_VERSION, '7.2', '>=')) {
return 'phpunit8';
}
Expand Down

0 comments on commit bd65d4e

Please sign in to comment.