diff --git a/php/WP_Mock/Functions.php b/php/WP_Mock/Functions.php index 3fab6dd6..8fdd3279 100644 --- a/php/WP_Mock/Functions.php +++ b/php/WP_Mock/Functions.php @@ -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!' ); } }