Skip to content

Commit

Permalink
Add a message to the internal functions exception
Browse files Browse the repository at this point in the history
Fixes #122
  • Loading branch information
johnpbloch authored Aug 14, 2018
1 parent 68e90e4 commit 059a623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/WP_Mock/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private function validate_function_name( $function_name ) {
$this->internal_functions = $defined_functions['internal'];
}
if ( in_array( $function_name, $this->internal_functions ) ) {
throw new \InvalidArgumentException;
throw new \InvalidArgumentException( 'Cannot override internal PHP functions!' );
}
}

Expand Down

0 comments on commit 059a623

Please sign in to comment.