-
Notifications
You must be signed in to change notification settings - Fork 85
Closed
Labels
command:scaffold-plugin-testsRelated to 'scaffold plugin-tests' commandRelated to 'scaffold plugin-tests' command
Milestone
Description
Any thoughts on allowing Composer to decide on PHPUnit version instead of manually inspecting TRAVIS_PHP_VERSION?
Instead of this:
scaffold-command/templates/plugin-travis.mustache
Lines 45 to 49 in 382bcff
| if [[ ${TRAVIS_PHP_VERSION:0:2} == "5." ]]; then | |
| composer global require "phpunit/phpunit=4.8.*" | |
| else | |
| composer global require "phpunit/phpunit=5.7.*" | |
| fi |
You could do something like this:
composer global require "phpunit/phpunit=4.8.*|5.7.*"
Which would give us PHPUnit 5.7 instead of 4.8 when running PHP 5.6.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
command:scaffold-plugin-testsRelated to 'scaffold plugin-tests' commandRelated to 'scaffold plugin-tests' command