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

Deprecate MockBuilder::allowMockingUnknownTypes() and MockBuilder::disallowMockingUnknownTypes() #5308

Closed
sebastianbergmann opened this issue Apr 11, 2023 · 0 comments
Assignees
Labels
feature/test-doubles Stubs and Mock Objects type/deprecation Something will be/is deprecated
Milestone

Comments

@sebastianbergmann
Copy link
Owner

To reduce complexity inside PHPUnit's test double functionality, MockBuilder::allowMockingUnknownTypes() and MockBuilder::disallowMockingUnknownTypes() will be deprecated and then removed:

  • soft deprecation in PHPUnit 10.1 (add @deprecated annotation to the method declaration)
  • deprecation in PHPUnit 11 (using the method will trigger a deprecation)
  • removal in PHPUnit 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-doubles Stubs and Mock Objects type/deprecation Something will be/is deprecated
Projects
None yet
Development

No branches or pull requests

1 participant