Skip to content

Deprecate MockBuilder::enableArgumentCloning() and MockBuilder::disableArgumentCloning() #5315

@sebastianbergmann

Description

@sebastianbergmann

To reduce complexity inside PHPUnit's test double functionality, MockBuilder::enableArgumentCloning() and MockBuilder::disableArgumentCloning() 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

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions