Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80e9b58

Browse filesBrowse files
bug symfony#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 symfony#60482 | License | MIT Commits ------- 03a02ac set path to the PHPUnit autoload file
2 parents 1084655 + 03a02ac commit 80e9b58
Copy full SHA for 80e9b58

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.