-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Deprecate MockBuilder::setMockClassName()
#5444
Comments
Follows #5444. |
I have some unit tests where I am generating multiple mocks of the same interface with expectations set, and adding them to a registry that stores them in an associative array by their class names. I was using Any advice for how I can accomplish what I'm trying to do with this deprecation? Thanks! |
@davidbyoung Thank you for bringing this up, I had not considered that use case. |
This reverts commit cc1308c.
Sorry to revive a closed issue, but given the above discussion, is |
It will not be deprecated in PHPUnit 10.4 and is currently scheduled for deprecation or removal. |
To reduce complexity inside PHPUnit's test double functionality,
MockBuilder::setMockClassName()
will be deprecated and then removed:@deprecated
annotation to the method declaration)The text was updated successfully, but these errors were encountered: