Skip to content

Commit

Permalink
Make it possible to throw any Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
Stadly committed Dec 17, 2018
1 parent a6d9814 commit ff7ae75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/MockObject/Builder/InvocationMocker.php
Expand Up @@ -162,7 +162,7 @@ public function willReturnOnConsecutiveCalls(...$values)
/**
* @return InvocationMocker
*/
public function willThrowException(\Exception $exception)
public function willThrowException(\Throwable $exception)
{
$stub = new Stub\Exception($exception);

Expand Down

0 comments on commit ff7ae75

Please sign in to comment.