Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[PhpUnitBridge] Clean up mocked features only when@group
is present#60484
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
Conversation
The change looks good. 👍 We need to update the code a bit after merging it into the
We can access the test with PHPUnit 12.1+ (seesebastianbergmann/phpunit@9f05cee). |
@xabbuh Good catch, seehttps://github.com/symfony/symfony/compare/f1ced798e2d17c7925bd189823f7c1aca5099716..cc144272b05668f20681937e0a753d153af22fbe |
Thank you@HypeMC. |
920035e
intosymfony:7.2Uh oh!
There was an error while loading.Please reload this page.
…butes (HypeMC)This PR was merged into the 7.3 branch.Discussion----------[PhpUnitBridge] Fix cleaning up mocked features with attributes| Q | A| ------------- | ---| Branch? | 7.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | -| License | MITFixes usage of the attributes introduced in#59384 to reflect changes made in#60484.Commits-------62da782 [PhpUnitBridge] Fix cleaning up mocked features with attributes
PR#60174 introduced a bug for tests that don't use the
@group
annotation but register mocks manually, e.g. insetUpBeforeClass
:testDate
passes, but after thatFinishedSubscriber
is triggered which cleans up the mock and causestestTime
to fail.I am not sure what to do about
BeforeTestMethodErroredSubscriber
since the test object is not available in that event. I think it's fine to leave it as is.cc@xabbuh