From 2b22017e8f130804e9f70759ae79fa128c5b360c Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Fri, 3 Jun 2011 17:12:59 +0000 Subject: [PATCH] Add tests for broken function arguments --- Zend/tests/function_arguments_001.phpt | 9 +++++++++ Zend/tests/function_arguments_002.phpt | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 Zend/tests/function_arguments_001.phpt create mode 100644 Zend/tests/function_arguments_002.phpt diff --git a/Zend/tests/function_arguments_001.phpt b/Zend/tests/function_arguments_001.phpt new file mode 100644 index 0000000000..e506350269 --- /dev/null +++ b/Zend/tests/function_arguments_001.phpt @@ -0,0 +1,9 @@ +--TEST-- +Argument parsing error #001 +--FILE-- + +--EXPECTF-- +Parse error: syntax error, unexpected T_STRING, expecting ')' in %sfunction_arguments.php on line %d + diff --git a/Zend/tests/function_arguments_002.phpt b/Zend/tests/function_arguments_002.phpt new file mode 100644 index 0000000000..79dd31f337 --- /dev/null +++ b/Zend/tests/function_arguments_002.phpt @@ -0,0 +1,9 @@ +--TEST-- +Argument parsing error #002 +--FILE-- + +--EXPECTF-- +Parse error: syntax error, unexpected '/', expecting ')' in %sfunction_arguments_002.php on line %d + -- 2.50.1