Replies: 2 comments 6 replies
-
Please create a small repository that shows the problem, so I can look into it. |
Beta Was this translation helpful? Give feedback.
6 replies
-
So what I posted under the thread is the best course forward. If you insist of making the PHPUnit v10 PHAR going alongside Codeception v4, the following works:
--- a/tools/phpstan/config.neon
+++ b/tools/phpstan/config.neon
@@ -1,4 +1,4 @@
parameters:
level: 2
bootstrapFiles:
- - phar://../phpunit/phpunit/vendor/autoload.php
+ - ../phpunit/phpunit
--- a/composer.json
+++ b/composer.json
@@ -7,5 +7,8 @@
"App\\": "src/",
"AppTests\\": "tests/"
}
+ },
+ "replace": {
+ "phpunit/phpunit": "^9"
}
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
we have a kind of special setup in our project:
When PHPStan analyses our unit tests, it sometimes reports issues, because it uses PHPUnit v9 for the analysis, but we use v10 for executing the tests actually.
I know that it's possible to load the PHAR like so:
If I try to run the analysis with this setting I get this error:
However, it would mix up the classes from the PHAR with the ones from the vendor directory.
Our setup looks like this:
Beta Was this translation helpful? Give feedback.
All reactions