Skip to content

PHPLIB-1659: Fix dropping collections after successful tests #1653

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

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Apr 2, 2025

https://jira.mongodb.org/browse/PHPLIB-1659

cb33c1c introduced onNotSuccessfulTest(), but that is the inverse logic. The internal TestCase::status() method seems to be the only replacement for TestCase::hasFailed(), which was removed in PHPUnit 10.

@jmikola jmikola requested a review from GromNaN April 2, 2025 16:22
@jmikola jmikola requested a review from a team as a code owner April 2, 2025 16:22
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.
The Throwable import must be removed to fix the CS.

cb33c1c introduced onNotSuccessfulTest(), but that is the inverse logic. The internal TestCase::status() method seems to be the only replacement for TestCase::hasFailed(), which was removed in PHPUnit 10.
@jmikola jmikola force-pushed the 1.21-phplib-1659 branch from 992f4ae to 80ab4b6 Compare April 3, 2025 14:03
@jmikola jmikola merged commit cf3fcd5 into mongodb:v1.21 Apr 3, 2025
31 checks passed
@jmikola jmikola deleted the 1.21-phplib-1659 branch April 3, 2025 16:24
This was referenced Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants