From 7a06d929257938708e167508b8f4ab9d31860dac Mon Sep 17 00:00:00 2001 From: Michal Piotrowski Date: Wed, 16 Dec 2015 00:27:12 +0100 Subject: [PATCH] prefer phpunit 5.x on hhvm --- phpunit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpunit b/phpunit index 083d046728..83b75e622e 100755 --- a/phpunit +++ b/phpunit @@ -18,8 +18,8 @@ use Symfony\Component\Process\ProcessUtils; error_reporting(-1); require __DIR__.'/src/Symfony/Component/Process/ProcessUtils.php'; -// PHPUnit 4.8 does not support PHP 7, while 5.0 requires PHP 5.6+ -$PHPUNIT_VERSION = PHP_VERSION_ID >= 70000 ? '5.0' : '4.8'; +// PHPUnit 4.8 does not support PHP 7, while 5.1 requires PHP 5.6+ +$PHPUNIT_VERSION = PHP_VERSION_ID >= 50600 ? '5.1' : '4.8'; $PHPUNIT_DIR = __DIR__.'/.phpunit'; $PHP = defined('PHP_BINARY') ? PHP_BINARY : 'php'; $PHP = ProcessUtils::escapeArgument($PHP);