- hhvm --php
- -d include_path=".$(printf ':%s' vendor/phpunit/*)"
- -d date.timezone="Etc/UTC"
- tests/phpunit/phpunit.php
+ if [ "$TRAVIS_PHP_VERSION" = "hhvm" ];
+ then
+ hhvm --php \
+ -d include_path=".$(printf ':%s' vendor/phpunit/*)" \
+ -d date.timezone="Etc/UTC" \
+ tests/phpunit/phpunit.php
+ else
+ php tests/phpunit/phpunit.php \
+ --with-phpunitdir ./vendor/phpunit/phpunit
+ fi