Skip to content

Deprecation warnings #71

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

Closed
esschul opened this issue May 16, 2024 · 5 comments
Closed

Deprecation warnings #71

esschul opened this issue May 16, 2024 · 5 comments
Milestone

Comments

@esschul
Copy link

esschul commented May 16, 2024

When invoking getFunctionMock I am getting the following deprecation warnings.

  • MockBuilder::addMethods() is deprecated and will be removed in PHPUnit 12 without replacement.
  • MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
@michalbundyra
Copy link
Member

@esschul thanks, see: #70

@esschul
Copy link
Author

esschul commented May 16, 2024

Thanks!

@esschul esschul closed this as completed May 16, 2024
@michalbundyra
Copy link
Member

Maybe lets leave it open, as it will be easier for others to spot the issue. Still if someone will provide the fix now I can accept it, but I am not going to work on it separately before we see PHPUnit 12.

Thanks

@crocodele
Copy link
Contributor

@michalbundyra, could you please have a look at the linked draft PR and let me know what you think? Thanks!

@michalbundyra
Copy link
Member

Done in #75, thanks @crocodele !

@michalbundyra michalbundyra added this to the 2.11.0 milestone Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants