Skip to content

Commit

Permalink
Use PHPUnit 6 for PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Jan 22, 2019
1 parent ca72b75 commit 7109dfb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis/before-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ composer install --no-ansi --no-progress --no-interaction --prefer-source;
if [ "${PHPCS}" = '1' ]; then
composer require --dev 'squizlabs/php_codesniffer=2.*';
else
composer require --dev 'phpunit/phpunit=^7';
PHP_VERSION="$(php -r 'echo phpversion();')";
if [ "${PHP_VERSION:0:3}" == '7.0' ]; then
composer require --dev 'phpunit/phpunit=^6';
else
composer require --dev 'phpunit/phpunit=^7';
fi
fi

0 comments on commit 7109dfb

Please sign in to comment.