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 Nov 21, 2018
1 parent 9bead3f commit 406754a
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 406754a

Please sign in to comment.