Skip to content

Commit

Permalink
Soft-deprecate getObjectForTrait() for #5244
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 24, 2023
1 parent 41966bd commit 7d36bee
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 @@ -16,5 +16,6 @@ All notable changes of the PHPUnit 10.1 release series are documented in this fi
* [#5241](https://github.com/sebastianbergmann/phpunit/issues/5241): Deprecate `TestCase::getMockForAbstractClass()` (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)
* [#5242](https://github.com/sebastianbergmann/phpunit/issues/5242): Deprecate `TestCase::getMockFromWsdl()` (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)
* [#5243](https://github.com/sebastianbergmann/phpunit/issues/5243): Deprecate `TestCase::getMockForTrait()` (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)
* [#5244](https://github.com/sebastianbergmann/phpunit/issues/5244): Deprecate `TestCase::getObjectForTrait()` (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 @@ -1415,6 +1415,8 @@ protected function getMockForTrait(string $traitName, array $arguments = [], str
* @psalm-param trait-string $traitName
*
* @throws \PHPUnit\Framework\MockObject\Exception
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5244
*/
protected function getObjectForTrait(string $traitName, array $arguments = [], string $traitClassName = '', bool $callOriginalConstructor = true, bool $callOriginalClone = true, bool $callAutoload = true): object
{
Expand Down

0 comments on commit 7d36bee

Please sign in to comment.