Sets throw promise to the prophecy.
@phpstan-param class-string<\Throwable>|\Throwable $exception
string|\Throwable $exception Exception class or instance:
$this
\Prophecy\Promise\ThrowPromise
public function willThrow($exception) { return $this->will(new Promise\ThrowPromise($exception)); }