Skip to content

Commit

Permalink
Revert soft-deprecation of TestCase::throwException()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 14, 2023
1 parent 77ca5cb commit 419b4c7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ final public static function returnSelf(): ReturnSelfStub
return new ReturnSelfStub;
}

/**
* @deprecated Use <code>$double->willThrowException()</code> instead of <code>$double->will($this->throwException())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
*/
final public static function throwException(Throwable $exception): ExceptionStub
{
return new ExceptionStub($exception);
Expand Down

0 comments on commit 419b4c7

Please sign in to comment.