Skip to content

Commit

Permalink
Soft-deprecate createPartialMock() for #5239
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 24, 2023
1 parent 0ffe48d commit c2ca132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog-10.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ All notable changes of the PHPUnit 10.1 release series are documented in this fi
### Changed

* [#5236](https://github.com/sebastianbergmann/phpunit/issues/5236): Deprecate the `CodeCoverageIgnore` attribute
* [#5239](https://github.com/sebastianbergmann/phpunit/issues/5239): Deprecate `TestCase::createPartialMock()` (this method only has a `@deprecated` annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)

[10.1.0]: https://github.com/sebastianbergmann/phpunit/compare/10.0...main
2 changes: 2 additions & 0 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,8 @@ protected function createConfiguredMock(string $originalClassName, array $config
*
* @throws \PHPUnit\Framework\MockObject\Exception
* @throws InvalidArgumentException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5239
*/
protected function createPartialMock(string $originalClassName, array $methods): MockObject
{
Expand Down

0 comments on commit c2ca132

Please sign in to comment.