From 059a6237e4164817e222fdad2410fce4afd0eccb Mon Sep 17 00:00:00 2001 From: "John P. Bloch" Date: Tue, 14 Aug 2018 09:39:08 -0500 Subject: [PATCH] Add a message to the internal functions exception Fixes #122 --- php/WP_Mock/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!' ); } }