Skip to content

Commit 80e9b58

Browse files
bug #60490 [PhpUnitBridge] set path to the PHPUnit autoload file (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [PhpUnitBridge] set path to the PHPUnit autoload file | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #60482 | License | MIT Commits ------- 03a02ac set path to the PHPUnit autoload file
2 parents 1084655 + 03a02ac commit 80e9b58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ class_exists(\SymfonyExcludeListSimplePhpunit::class, false) && PHPUnit\Util\Bla
386386
$cmd .= '%2$s';
387387
}
388388

389+
if (version_compare($PHPUNIT_VERSION, '11.0', '>=')) {
390+
$GLOBALS['_composer_autoload_path'] = "$PHPUNIT_DIR/$PHPUNIT_VERSION_DIR/vendor/autoload.php";
391+
}
392+
389393
if ($components) {
390394
$skippedTests = $_SERVER['SYMFONY_PHPUNIT_SKIPPED_TESTS'] ?? false;
391395
$runningProcs = [];

0 commit comments

Comments
 (0)