-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
phpunit-bridge breaks with phpunit 9.1.2 #36499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can confirm. Running
yields
Running
yields (among others)
Running
yields
|
I would not go as far as blaming |
Can anyone look into an alternative implementation? |
@localheinz I'm not blaming phpunit, I know the class is marked as internal. |
For those who came here for quick solution: set in composer.json fixed phpunit version. |
In addition to this message, the quick solution is to downgrade PHPUnit to the highest compatible version
Well, my bad I can't find the file in the current version. |
Sebastian was so kind to suggest a solution on his side: sebastianbergmann/phpunit#4186 (comment) |
This PR was merged into the 3.4 branch. Discussion ---------- [PhpUnitBridge] fix compatibility with phpunit 9 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36499 | License | MIT | Doc PR | none See related issue Commits ------- e27ed28 fix compatibility with phpunit 9
This PR was merged into the 3.4 branch. Discussion ---------- [PhpUnitBridge] Improve dirname usage | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #36499 | License | MIT This is a very small performance improvement on top of #36539 Commits ------- e721cfd Improve dirname usage
Issue symfony#36499 Error appears in symfony 5 when we use phpunit 9.1.3 and symfony/phpunit-bridge 5.0.7
I'm using Symfony 4.4, I got the same error. |
There hasn't been a release yet. |
I see. But I need to use ist. How can I change the version with the Symfony phpunit bridge? |
You can use this constraint: |
Where? phpunit will be installed by running the command |
Oh then you need to use |
I got error messages with the following phpunit versions:
Is there any version that works? |
@antondachauer as mentioned in the comment above, phpunit
|
No, 9.1.1 also does not work.
|
This is weird. |
... but not for me. Here's my phpunit.xml content:
|
Looks like you have PHPUnit installed in |
Ok, I've removed the vendor phpunit package. Now it works with version 9.1.1. Thank you. |
Hi,
Since phpunit 9.1.2, the bridge fails with this error:
After a little research, I found the commit that breaks it: sebastianbergmann/phpunit@2b4d7b8
So phpunit switches from a public static var to a private constant.
The text was updated successfully, but these errors were encountered: