language: php
php:
- '7.1'
- '7.0'
- '5.6'
- '5.5'
- '5.4'
- '5.3'
- '5.2'

install:
- phpenv local 5.3
- composer install
- phpenv local --unset

script:
- echo $TRAVIS_PHP_VERSION
- php ./vendor/phpunit/phpunit/phpunit.php

language: php
php:
- '7.1'
- '7.0'
- '5.6'
- '5.5'
- '5.4'
- '5.3'
- '5.2'

install:
- phpenv local 5.3
- composer install
- phpenv local --unset

script:
- echo $TRAVIS_PHP_VERSION
- if [[ "$TRAVIS_PHP_VERSION" == "5.2" ]]; then phpunit; else ./vendor/bin/phpunit; fi

Revert "Try directly invoking phpunit.php"
Revert "Try directly invoking phpunit.php"

This reverts commit a26f51bb8fae33573dd416e24b84afc8939d8bd9.
