Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Notifier] MakeTransportTestCase data providers static#49385
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
[Notifier] MakeTransportTestCase data providers static#49385
Uh oh!
There was an error while loading.Please reload this page.
Conversation
471c943 to1509b1aCompareTransportTestCase data providers staticTransportTestCase data providers staticUPGRADE-5.4.md Outdated
| Notifier | ||
| -------- | ||
| * The following data providers for`TransportTestCase` are now static:`toStringProvider()`,`supportedMessagesProvider()` and`unsupportedMessagesProvider()` |
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.
This is already done in#49368
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.
It was in case the main PR is not ready for the next patch version of 5.4. But I guess we'll be able to tackle everything before next release so I'll remove it! 🙂
nicolas-grekas left a comment• 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.
Thanks, good to see it green. Can you please send a PR to 6.2 also? I will use it when merging up this branch. (+6.3 but the number of new bridges should be small so I could do it myself I suppose).
My reasoning for doing this in 5.4 is that while this is a BC BREAK, I consider phpunit as part of the PHP infrastructure. Exactly like we consider supporting new PHP versions as bug fixes, we should consider supporting new phpunit versions as bug fixes. The benefit of doing so is well known: enabling smooth migrations (this change won't break compact with phpunit < 10.)
About the BC BREAK itself, it cannot have prod impact since we're talking about test classes. Also, it would impact private notifier bridges. I suspect these to be quite rare.
👍
UPGRADE-5.4.md Outdated
| its default value will change to`true` in 6.0 | ||
| Notifier |
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.
alpha order => after M* :)
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.
Updated 🙂
Uh oh!
There was an error while loading.Please reload this page.
TransportTestCase data providers staticTransportTestCase data providers staticUh oh!
There was an error while loading.Please reload this page.
1509b1a to6a9f1d0Comparealexandre-daubois commentedFeb 15, 2023 • 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.
About the 6.2 targeting PR, I'm on it! 👌 Edit: it's available here:#49389 |
nicolas-grekas commentedFeb 15, 2023
thank you@alexandre-daubois |
nicolas-grekas commentedFeb 15, 2023
Arf sorry I realize only now that none of the classes in the Fixtures namespace should have been added.
Can you please send a PR? |
alexandre-daubois commentedFeb 15, 2023
Of course, working on it 👍 |
…lace mocks (alexandre-daubois)This PR was merged into the 5.4 branch.Discussion----------[Notifier] Replace tests dummy instances by already in place mocks| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets |Fix#49385 (comment)| License | MIT| Doc PR | _NA_Replacing dummy classes to use already existing mocks and stubs (`MockHttpClient`, `NullLogger` and so on).Commits-------83120cb [Notifier] Replace tests dummy instances by already in place mocks
Uh oh!
There was an error while loading.Please reload this page.
ℹ️ Note: the
TransportTestCase::createTransport()method also had to be passed to static.cc@OskarStark