Skip to content

Commit

Permalink
rename throw funtion name to willThrow
Browse files Browse the repository at this point in the history
When it will make old php syntax error
#1
  • Loading branch information
HillLiu committed Apr 3, 2021
1 parent 56adfe1 commit 1eb7834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function haveString($needle, $haystack)
}
}

protected function throw($willThrow, $error = true)
protected function willThrow($willThrow, $error = true)
{
$traces = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
$func = $traces[1]['function'];
Expand Down

0 comments on commit 1eb7834

Please sign in to comment.