Fix phpunit bridge

This commit is contained in:
Nicolas Grekas 2017-10-13 18:39:56 +02:00
parent be9382a772
commit 7ba7550dfb
2 changed files with 2 additions and 1 deletions

View File

@ -19,5 +19,6 @@ class ProcessIsolationTest extends TestCase
public function testIsolation()
{
@trigger_error('Test abc', E_USER_DEPRECATED);
$test->addToAssertionCount(1);
}
}

View File

@ -68,7 +68,7 @@ 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 require --no-update symfony/phpunit-bridge \">=3.2@dev\"");
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \">=3.3.11@dev\"");
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION");
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p, getcwd(), null, array('bypass_shell' => true)));