-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
compatibility with phpunit8 #30474
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
compatibility with phpunit8 #30474
Conversation
What about a generic trait that would call a private |
You mean a single trait with all methods for the 3 classes? |
yes, and keep the code in the current classes |
Well, it makes sense. |
300289d
to
a045ef0
Compare
🤔 3 proposals: one trait per component, add the trait in the bridge, add the trait in contracts. Pick one :) |
Better now? Let me know, I'll squash |
Looks like we're converging on something nice :) |
src/Symfony/Component/Form/Test/FormIntegrationTestCaseSetupTrait.php
Outdated
Show resolved
Hide resolved
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.
Looks nice, thanks!
What about adding the same trait - not internal this time - on the bridge in 4.3 (master)?
c7c4ca1
to
5ef254f
Compare
Thank you @garak. |
This PR was merged into the 3.4 branch. Discussion ---------- compatibility with phpunit8 This basically adds the same phpunit8 compatibility layer added in #30084 (but for other test classes) See also discussion in #30071 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30071 | License | MIT | Doc PR | none Commits ------- 5ef254f compatibility with phpunit8
…Dude) This PR was merged into the 3.4 branch. Discussion ---------- [Tests] fixed compatbility of assertEquals(): void | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Same as #30474. Commits ------- 3f7bedc [Tests] fixed compatbility of assertEquals(): void
This basically adds the same phpunit8 compatibility layer added in #30084 (but for other test classes)
See also discussion in #30071