Make WordPress Core

Changeset 44701 for trunk/.travis.yml


Ignore:
Timestamp:
01/28/2019 02:10:24 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Add support for PHPUnit 7.x.

  • Create an abstract WP_UnitTestCase_Base class to share between PHPUnit 7.x and older versions.
  • Add a speed-trap loader to determine which SpeedTrapListener class needs to be loaded for the current PHPUnit version.
  • Remove unnecessary PHPUnit\Util\Test and PHPUnit_Util_Getopt inheritances.
  • Update Travis CI config to use PHPUnit 7.x for PHP 7.1, 7.2, and nightly PHP versions.

Props jipmoors, netweb, desrosj, ayeshrajans, soulseekah, SergeyBiryukov.
See #43218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r44219 r44701  
    6868  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
    6969    case "$TRAVIS_PHP_VERSION" in
    70       7.3|7.2|7.1|7.0|nightly)
     70      7.3|7.2|7.1|nightly)
     71        echo "Using PHPUnit 7.x"
     72        travis_retry composer global require "phpunit/phpunit:^7"
     73        ;;
     74      7.0)
    7175        echo "Using PHPUnit 6.x"
    7276        travis_retry composer global require "phpunit/phpunit:^6"
Note: See TracChangeset for help on using the changeset viewer.