Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Make tests support phpunit 8#32842
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
88e284d to144abebCompareThis PR was merged into the 3.4 branch.Discussion----------Make tests support phpunit 8| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | -| License | MIT| Doc PR | -Having `void` on setUp/tearDown is **really** painful /cc@sebastianbergmann FYIThis works around the issue by adding a new trait to the phpunit-bridge: `SetUpTearDownTrait`.Another reason why the bridge is so useful...With this change, we should have the same codebase be able to run under phpunit 4.8 (used with PHP5.5) up to phpunit 8.2 (used with PHP7.4).:crossed_fingers: :face_with_head_bandage:One more step towards PHP 7.4 support.Commits-------81af97f Make tests support phpunit 8
Tobion commentedAug 1, 2019
This looks like a huge source of conflicts. Are we sure we want to introduce that? The alternatives would be to not support phpunit 8 or only do these changes in 4.4 and up. |
nicolas-grekas commentedAug 1, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This is merged up to master now so that conflicts are resolved once for all. We have to support phpunit 8 because that's the only way to PHP 7.4, which we want to support on branch 3.4... |
mlocati commentedAug 6, 2019
This is a recurring problem: every PHPUnit version supports just a small range of PHP versions. |
nicolas-grekas commentedAug 6, 2019
| */ | ||
| protectedstatic$kernel; | ||
| privatefunctiondoTearDown() |
teohhanhuiAug 29, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Maybe it doesn't bother too many people, but the visibility of this method has been changed from v4.3.3:
| protectedfunctiondoTearDown():void |
It broke our builds in API Platform.
Uh oh!
There was an error while loading.Please reload this page.
Having
voidon setUp/tearDown isreally painful /cc@sebastianbergmann FYIThis works around the issue by adding a new trait to the phpunit-bridge :
ForwardCompatTestTrait.Another reason why the bridge is so useful...
With this change, we should have the same codebase be able to run under phpunit 4.8 (used with PHP5.5) up to phpunit 8.2 (used with PHP7.4).
🤞 🤕
One more step towards PHP 7.4 support.