Skip to content

Commit 852778f

Browse files
authored
Include the correct version of phpunit.
1 parent de9cc72 commit 852778f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ before_script:
1919
- composer install
2020
- npm install
2121
- bash tests/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
22+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
23+
- |
24+
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
25+
composer global require "phpunit/phpunit=5.7.*"
26+
else
27+
composer global require "phpunit/phpunit=4.8.*"
28+
fi
29+
2230
2331
script:
2432
- phpunit

0 commit comments

Comments
 (0)