Use PHPUnit 5.0 for PHP 7
PHPUnit 4.8 is not fully compatible with PHP 7, and won't be fixed for full support.
This commit is contained in:
parent
5e46485b83
commit
1129d608de
7
phpunit
7
phpunit
@ -3,9 +3,14 @@
|
|||||||
|
|
||||||
error_reporting(-1);
|
error_reporting(-1);
|
||||||
|
|
||||||
$PHPUNIT_VERSION = 4.8;
|
$PHPUNIT_VERSION = '4.8';
|
||||||
$PHPUNIT_DIR = __DIR__.'/.phpunit';
|
$PHPUNIT_DIR = __DIR__.'/.phpunit';
|
||||||
|
|
||||||
|
// PHPUnit 4.8 does not support PHP 7, while 5.0 requires PHP 5.6+
|
||||||
|
if (PHP_VERSION_ID >= 70000) {
|
||||||
|
$PHPUNIT_DIR = '5.0';
|
||||||
|
}
|
||||||
|
|
||||||
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit")) {
|
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit")) {
|
||||||
// Build a standalone phpunit without symfony/yaml
|
// Build a standalone phpunit without symfony/yaml
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user