Skip to content

Commit 0604613

Browse files
committed
Fix symfony/phpunit-bridge not up to date in phpunit 4.8 test suite
1 parent 9f40b10 commit 0604613

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
8383
if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) {
8484
passthru("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
8585
}
86+
if ($PHPUNIT_VERSION < 5.0) {
87+
passthru("$COMPOSER config --unset platform");
88+
}
8689
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) {
8790
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\"");
8891
passthru("$COMPOSER config repositories.phpunit-bridge path ".escapeshellarg(str_replace('/', DIRECTORY_SEPARATOR, $path)));

0 commit comments

Comments
 (0)