From: Antony Dovgal Date: Mon, 20 Nov 2006 22:17:00 +0000 (+0000) Subject: add new test X-Git-Tag: RELEASE_1_0_0RC1~956 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f11c0cc73c59d7a46ea2fd4afdae6969db7af9a;p=php add new test --- diff --git a/ext/filter/tests/040.phpt b/ext/filter/tests/040.phpt new file mode 100644 index 0000000000..7ebb12e996 --- /dev/null +++ b/ext/filter/tests/040.phpt @@ -0,0 +1,43 @@ +--TEST-- +filter_has_var() tests +--GET-- +a=1&b=2&c=0 +--POST-- +ap[]=1&bp=test&cp= +--FILE-- + +--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