From a6f8f9668b3f2aca33ed46ff5f73126bde0ed09b Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 22 Aug 2017 16:08:33 +0000 Subject: [PATCH] Build/Test tools: Use the latest in the 4.x and 6.x branches of PHPUnit when running tests on Travis. Props netweb, ayeshrajans Fixes #41472 git-svn-id: https://develop.svn.wordpress.org/trunk@41294 602fd350-edb4-49c9-b593-d223f7449a82 --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0139021317..389d2481a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,12 +65,12 @@ before_script: if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then case "$TRAVIS_PHP_VERSION" in 7.2|7.1|7.0|nightly) - echo "Using PHPUnit 6.1" - composer global require "phpunit/phpunit=6.1.*" + echo "Using PHPUnit 6.x" + composer global require "phpunit/phpunit:^6" ;; 5.6|5.5|5.4|5.3) - echo "Using PHPUnit 4.8" - composer global require "phpunit/phpunit=4.8.*" + echo "Using PHPUnit 4.x" + composer global require "phpunit/phpunit:^4" ;; 5.2) # Do nothing, use default PHPUnit 3.6.x