summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_args.002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/func_get_args.002.phpt')
-rw-r--r--tests/lang/func_get_args.002.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lang/func_get_args.002.phpt b/tests/lang/func_get_args.002.phpt
new file mode 100644
index 0000000..0a886c2
--- /dev/null
+++ b/tests/lang/func_get_args.002.phpt
@@ -0,0 +1,22 @@
+--TEST--
+func_get_args with variable number of args
+--FILE--
+<?php
+
+function foo($a)
+{
+ var_dump(func_get_args());
+}
+foo(1, 2, 3);
+
+?>
+--EXPECT--
+array(3) {
+ [0]=>
+ int(1)
+ [1]=>
+ int(2)
+ [2]=>
+ int(3)
+}
+