Skip to content

Commit

Permalink
Try defaulting to PHPUnit 6, and then update to PHPUnit 7
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed May 9, 2019
1 parent b8cb5af commit 7b214ff
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 117 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ before_script:
- |
if [[ ! -z "$WP_VERSION" ]] ; then
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
if [[ "$WP_VERSION" == "4.9.8" ]] ; then
rm composer.lock
composer require --dev phpunit/phpunit ^6
if [[ "$TRAVIS_PHP_VERSION" == "7.3" ]] ; then
composer require --dev phpunit/phpunit ^7
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
"wp-coding-standards/wpcs": "^2.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
"phpunit/phpunit": "^7"
"phpunit/phpunit": "^6"
},
"scripts": {
"lint": "@phpcs",
Expand Down
Loading

0 comments on commit 7b214ff

Please sign in to comment.