WordPress.org

Make WordPress Core

Changeset 40536 for trunk/.travis.yml


Ignore:
Timestamp:
04/23/2017 02:05:12 AM (2 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Add support for PHPUnit 6+.

This adds a compatibility shim for the new namespaced structure of PHPUnit and the removed setExpectedException() method. In addition, this updates the Travis config so PHPUnit 6.1 is used where appropriate.

Props miyauchi, gitlost.

Fixes #39822

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r40528 r40536  
    6868  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
    6969    case "$TRAVIS_PHP_VERSION" in
    70       7.1|7.0|hhvm|nightly)
     70      7.1|7.0|nightly)
     71        echo "Using PHPUnit 6.1"
     72        composer global require "phpunit/phpunit=6.1.*"
     73        ;;
     74      hhvm)
    7175        echo "Using PHPUnit 5.7"
    7276        composer global require "phpunit/phpunit=5.7.*"
Note: See TracChangeset for help on using the changeset viewer.