From ceca4f36152d184a3bff463c79122e4dda96a3c3 Mon Sep 17 00:00:00 2001 From: andy wharmby Date: Sun, 14 Jun 2009 13:49:16 +0000 Subject: Basic tests for function_exists() and get_defined_functions(). Tested on Windows, Linux and Linux 64 bit. --- Zend/tests/function_exists_variation1.phpt | 138 +++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 Zend/tests/function_exists_variation1.phpt (limited to 'Zend/tests/function_exists_variation1.phpt') diff --git a/Zend/tests/function_exists_variation1.phpt b/Zend/tests/function_exists_variation1.phpt new file mode 100644 index 0000000000..16b05fc036 --- /dev/null +++ b/Zend/tests/function_exists_variation1.phpt @@ -0,0 +1,138 @@ +--TEST-- +Test function_exists() function : usage variations - test values for $str argument +--FILE-- + +===Done=== +--EXPECTF-- +*** Testing function_exists() function: with unexpected inputs for 'str' argument *** +-- Iteration 1 -- +bool(false) +-- Iteration 2 -- +bool(false) +-- Iteration 3 -- +bool(false) +-- Iteration 4 -- +bool(false) +-- Iteration 5 -- +bool(false) +-- Iteration 6 -- +bool(false) +-- Iteration 7 -- +bool(false) +-- Iteration 8 -- +bool(false) +-- Iteration 9 -- +bool(false) +-- Iteration 10 -- + +Warning: function_exists() expects parameter 1 to be string, array given in %s on line %d +NULL +-- Iteration 11 -- + +Warning: function_exists() expects parameter 1 to be string, array given in %s on line %d +NULL +-- Iteration 12 -- + +Warning: function_exists() expects parameter 1 to be string, array given in %s on line %d +NULL +-- Iteration 13 -- +bool(false) +-- Iteration 14 -- +bool(false) +-- Iteration 15 -- +bool(false) +-- Iteration 16 -- +bool(false) +-- Iteration 17 -- +bool(false) +-- Iteration 18 -- +bool(false) +-- Iteration 19 -- +bool(false) +-- Iteration 20 -- + +Warning: function_exists() expects parameter 1 to be string, resource given in %s on line %d +NULL +-- Iteration 21 -- +bool(false) +-- Iteration 22 -- +bool(false) +===Done=== + \ No newline at end of file -- cgit v1.2.1