cvs: php-src /ext/filter/tests 040.phpt

From: Date: Mon, 20 Nov 2006 22:17:01 +0000
Subject: cvs: php-src /ext/filter/tests 040.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41662@lists.php.net to get a copy of this message
tony2001 Mon Nov 20 22:17:01 2006 UTC Added files: /php-src/ext/filter/tests 040.phpt Log: add new test http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/040.phpt?view=markup&rev=1.1 Index: php-src/ext/filter/tests/040.phpt +++ php-src/ext/filter/tests/040.phpt --TEST-- filter_has_var() tests --GET-- a=1&b=2&c=0 --POST-- ap[]=1&bp=test&cp= --FILE-- <?php var_dump(filter_has_var()); var_dump(filter_has_var(INPUT_GET,"")); var_dump(filter_has_var(INPUT_GET,array())); var_dump(filter_has_var(INPUT_POST, "ap")); var_dump(filter_has_var(INPUT_POST, "cp")); var_dump(filter_has_var(INPUT_GET, "a")); var_dump(filter_has_var(INPUT_GET, "c")); var_dump(filter_has_var(INPUT_GET, "abc")); var_dump(filter_has_var(INPUT_GET, "cc")); var_dump(filter_has_var(-1, "cc")); var_dump(filter_has_var(0, "cc")); var_dump(filter_has_var("", "cc")); echo "Done\n"; ?> --EXPECTF-- Warning: filter_has_var() expects exactly 2 parameters, 0 given in %s on line %d bool(false) bool(false) Warning: filter_has_var() expects parameter 2 to be string, array given in %s on line %d bool(false) bool(true) bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) Warning: filter_has_var() expects parameter 1 to be long, string given in %s on line %d bool(false) Done

« previous php.cvs (#41662) next »