Commit a4b9aee7 authored by Erick Hitter's avatar Erick Hitter
Browse files

Force a version of PHPUnit earlier than 6

PHPUnit 6 drops the `PHPUnit_Framework_TestCase` class, breaking all tests derived from Core. This fix is derived from Core's solution; see
parent 64621c69
......@@ -16,6 +16,14 @@ env:
- phpenv config-rm xdebug.ini
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer global require "phpunit/phpunit=5.7.*"
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
composer global require "phpunit/phpunit=4.8.*"
- bash bin/ wordpress_test root '' localhost $WP_VERSION
script: phpunit
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment