8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8319669 commit 488da3eCopy full SHA for 488da3e
src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php
@@ -283,6 +283,16 @@ class SymfonyExcludeListPhpunit {}
283
chdir($oldPwd);
284
}
285
286
+// Create a symlink with a stable path pointing to the currently used version.
287
+// This useful for static analytics tools such as PHPStan having to load PHPUnit's classes
288
+// and for other testing libraries such as Behat using PHPUnit's assertions.
289
+chdir($PHPUNIT_DIR);
290
+if (file_exists('phpunit')) {
291
+ unlink('phpunit');
292
+}
293
+symlink($PHPUNIT_VERSION_DIR, 'phpunit');
294
+chdir($oldPwd);
295
+
296
if ($PHPUNIT_VERSION < 8.0) {
297
$argv = array_filter($argv, function ($v) use (&$argc) {
298
if ('--do-not-cache-result' !== $v) {
0 commit comments