summaryrefslogtreecommitdiff
path: root/ext/filter/tests/012.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/filter/tests/012.phpt')
-rw-r--r--ext/filter/tests/012.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/filter/tests/012.phpt b/ext/filter/tests/012.phpt
new file mode 100644
index 0000000..9a8ead9
--- /dev/null
+++ b/ext/filter/tests/012.phpt
@@ -0,0 +1,18 @@
+--TEST--
+filter_input()
+--SKIPIF--
+<?php if (!extension_loaded("filter")) die("skip"); ?>
+--FILE--
+<?php
+
+var_dump(filter_input(INPUT_GET, "test"));
+var_dump(filter_input(INPUT_POST, "test"));
+var_dump(filter_input(INPUT_COOKIE, ""));
+
+echo "Done\n";
+?>
+--EXPECT--
+NULL
+NULL
+NULL
+Done