Skip to content

Commit

Permalink
Merge pull request #123 from johnpbloch/patch-1
Browse files Browse the repository at this point in the history
Add a message to the internal functions exception
  • Loading branch information
ericmann authored Aug 15, 2018
2 parents 68e90e4 + 059a623 commit d1cdc6e
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 d1cdc6e

Please sign in to comment.