Skip to content

Commit 4ec4a23

Browse files
fix tests
1 parent df2008f commit 4ec4a23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/simple-phpunit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
9595
$passthruOrFail("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
9696
}
9797

98-
$passthruOrFail("$COMPOSER config --unset platform");
98+
if (PHP_VERSION_ID >= 70000) {
99+
$passthruOrFail("$COMPOSER config --unset platform");
100+
}
99101
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) {
100102
$passthruOrFail("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\"");
101103
$passthruOrFail("$COMPOSER config repositories.phpunit-bridge path ".escapeshellarg(str_replace('/', DIRECTORY_SEPARATOR, $path)));

0 commit comments

Comments
 (0)