summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/proc_nice_error.phpt
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2010-01-07 13:31:53 +0100
committerOndřej Surý <ondrej@sury.org>2010-01-07 13:31:53 +0100
commit0fab6db7cac8d2be99579dd049f812a8ff98e74f (patch)
tree91f01b0d06916c78262404096bfd466b8e95e5b5 /ext/standard/tests/general_functions/proc_nice_error.phpt
parentd3a8757891280dc6650ca7eead67830c794b0e7b (diff)
downloadphp-upstream/5.3.1.tar.gz
Imported Upstream version 5.3.1upstream/5.3.1
Diffstat (limited to 'ext/standard/tests/general_functions/proc_nice_error.phpt')
-rw-r--r--ext/standard/tests/general_functions/proc_nice_error.phpt21
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