Skip to content
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

Fix tests. #53

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Fix tests. #53

merged 2 commits into from
Jul 25, 2024

Conversation

mikebronner
Copy link
Contributor

@mikebronner mikebronner commented Jul 25, 2024

Fixes #41
Fixes #42

PHPUnit's mock builder's ->setMethod() has been replaced with ->addMethod() in PHPUnit 10. Unfortunately it is being deprecated and removed without replacement in PHPUnit 12, at which time the test will need to be written differently to accommodate for that. Further, ->getMockBuilder() is also being deprecated.

I'm leaving the deprecated version in place, thinking it will get things moving quickly, allowing for more time and research down the road as to how the test needs to be restructured in PHPUnit 12.

sebastianbergmann/phpunit#5320
sebastianbergmann/phpunit#5754
sebastianbergmann/phpunit#5755
sebastianbergmann/phpunit#3985

PS: I believe the StyleCI issue is something that needs to be resolved within StyleCI, not sure as I don't use that service, and also do not see a specific configuration file within this repo.

@mikebronner mikebronner marked this pull request as ready for review July 25, 2024 12:36
@mikebronner mikebronner mentioned this pull request Jul 25, 2024
@jenssegers jenssegers merged commit 8a81b2e into jenssegers:master Jul 25, 2024
4 of 5 checks passed
@jenssegers
Copy link
Owner

Awesome!

@mikebronner mikebronner deleted the fix-tests branch July 25, 2024 12:45
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.

Return Type Warnings
2 participants