Skip to content

Travis: allow Composer to determine appropriate PHPUnit version #74

@ssnepenthe

Description

@ssnepenthe

Any thoughts on allowing Composer to decide on PHPUnit version instead of manually inspecting TRAVIS_PHP_VERSION?

Instead of this:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions