diff options
Diffstat (limited to 'ext/standard/tests/general_functions/proc_nice_error.phpt')
| -rw-r--r-- | ext/standard/tests/general_functions/proc_nice_error.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/proc_nice_error.phpt b/ext/standard/tests/general_functions/proc_nice_error.phpt new file mode 100644 index 000000000..c50812c86 --- /dev/null +++ b/ext/standard/tests/general_functions/proc_nice_error.phpt @@ -0,0 +1,21 @@ +--TEST-- +Test function proc_nice() by calling it more than or less than its expected arguments +--FILE-- +<?php + + +echo "*** Test by calling method or function with incorrect numbers of arguments ***\n" + +$priority = + + +$extra_arg = + +var_dump(proc_nice( $priority, $extra_arg ) ); + +var_dump(proc_nice( ) ); + + +?> +--EXPECTF-- +Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in %s on line %d |
