Skip to content

Commit

Permalink
Soft-deprecate createTestProxy() for #5240
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 24, 2023
1 parent c2ca132 commit 178cd73
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 @@ -12,5 +12,6 @@ All notable changes of the PHPUnit 10.1 release series are documented in this fi

* [#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)
* [#5240](https://github.com/sebastianbergmann/phpunit/issues/5240): Deprecate `TestCase::createTestProxy()` (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 @@ -1268,6 +1268,8 @@ protected function createPartialMock(string $originalClassName, array $methods):
*
* @throws \PHPUnit\Framework\MockObject\Exception
* @throws InvalidArgumentException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5240
*/
protected function createTestProxy(string $originalClassName, array $constructorArguments = []): MockObject
{
Expand Down

0 comments on commit 178cd73

Please sign in to comment.