From 2dd22beedb0cef8e3e287df5841d7cd06e59ef74 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 9 Dec 2006 03:18:21 +0000 Subject: [PATCH] MFB: Fixed tests --- ext/filter/tests/007.phpt | 70 ++++++++++++++++++--------------------- ext/filter/tests/011.phpt | 40 +++++++++++----------- 2 files changed, 51 insertions(+), 59 deletions(-) diff --git a/ext/filter/tests/007.phpt b/ext/filter/tests/007.phpt index 72670dc795..8012bd36cf 100644 --- a/ext/filter/tests/007.phpt +++ b/ext/filter/tests/007.phpt @@ -1,11 +1,5 @@ --TEST-- -input_has_variable() ---SKIPIF-- - +filter_has_var() --GET-- a=qwe&abc=href --POST-- @@ -13,25 +7,25 @@ b=qwe&bbc=href --FILE-- @@ -42,27 +36,27 @@ bool(false) bool(false) bool(false) -Warning: input_has_variable() expects parameter 2 to be string, array given in %s on line %d -NULL +Warning: filter_has_var() expects parameter 2 to be string, array given in %s/007.php on line %d +bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) -Warning: input_has_variable() expects parameter 2 to be string, array given in %s on line %d -NULL +Warning: filter_has_var() expects parameter 2 to be string, array given in %s/007.php on line %d +bool(false) bool(false) -Warning: input_has_variable() expects parameter 1 to be long, string given in %s on line %d -NULL +Warning: filter_has_var() expects parameter 1 to be long, string given in %s/007.php on line %d +bool(false) -Warning: input_has_variable() expects parameter 1 to be long, array given in %s on line %d -NULL +Warning: filter_has_var() expects parameter 1 to be long, array given in %s/007.php on line %d +bool(false) -Warning: input_has_variable() expects parameter 1 to be long, array given in %s on line %d -NULL +Warning: filter_has_var() expects parameter 1 to be long, array given in %s/007.php on line %d +bool(false) -Warning: input_has_variable() expects parameter 1 to be long, string given in %s on line %d -NULL +Warning: filter_has_var() expects parameter 1 to be long, string given in %s/007.php on line %d +bool(false) Done diff --git a/ext/filter/tests/011.phpt b/ext/filter/tests/011.phpt index 1e5d0182cc..f0d4892ebc 100644 --- a/ext/filter/tests/011.phpt +++ b/ext/filter/tests/011.phpt @@ -1,11 +1,5 @@ --TEST-- input_get() ---SKIPIF-- - --GET-- a=test&b=http://example.com --POST-- @@ -13,20 +7,20 @@ c=

string

&d=12345.7 --FILE-- @@ -34,19 +28,23 @@ echo "Done\n"; string(4) "test" string(18) "http://example.com" string(27) "<b>test</b>" + +Notice: Object of class stdClass could not be converted to int in %s/011.php on line %d bool(false) string(6) "string" float(12345.7) string(29) "<p>string</p>" bool(false) -Warning: input_get() expects parameter 1 to be long, object given in %s on line %d +Warning: filter_var() expects parameter 2 to be long, string given in %s/011.php on line %d NULL -Warning: input_get() expects parameter 3 to be long, string given in %s on line %d +Warning: filter_input() expects parameter 3 to be long, string given in %s/011.php on line %d NULL -Warning: input_get() expects parameter 1 to be long, string given in %s on line %d +Warning: filter_var() expects at most 3 parameters, 5 given in %s/011.php on line %d NULL + +Warning: filter_var() expects at most 3 parameters, 5 given in %s/011.php on line %d NULL Done -- 2.40.0