Fix symfony/phpunit-bridge not up to date in phpunit 4.8 test suite

This commit is contained in:
Jérémy Derussé 2019-08-01 16:07:07 +02:00
parent 9f40b100e5
commit a0f68aa554
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) {
passthru("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
}
passthru("$COMPOSER config --unset platform");
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) {
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\"");
passthru("$COMPOSER config repositories.phpunit-bridge path ".escapeshellarg(str_replace('/', DIRECTORY_SEPARATOR, $path)));