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 1f5dc8eCopy full SHA for 1f5dc8e
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 predictable path pointing to the currently used version.
287
+// This is 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