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::enableAutoload() and MockBuilder::disableAutoload() #5309

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::enableAutoload() and MockBuilder::disableAutoload() 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
@sebastianbergmann sebastianbergmann added feature/test-doubles Stubs and Mock Objects type/deprecation Something will be/is deprecated labels Apr 11, 2023
@sebastianbergmann sebastianbergmann self-assigned this Apr 11, 2023
@sebastianbergmann sebastianbergmann changed the title Disable MockBuilder::enableAutoload() and MockBuilder::disableAutoload() Deprecate MockBuilder::enableAutoload() and MockBuilder::disableAutoload() Apr 11, 2023
@sebastianbergmann sebastianbergmann added this to the PHPUnit 11.0 milestone Oct 14, 2023
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