From: Antony Dovgal Date: Wed, 19 Jul 2006 08:26:50 +0000 (+0000) Subject: fix tests X-Git-Tag: php-5.2.0RC1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28c9afe35d32baa4ca7b6d5920119ff8757e8b4c;p=php fix tests --- diff --git a/ext/filter/tests/007.phpt b/ext/filter/tests/007.phpt index ffc727801d..d751c1ea6c 100644 --- a/ext/filter/tests/007.phpt +++ b/ext/filter/tests/007.phpt @@ -35,7 +35,6 @@ bool(true) bool(false) bool(false) bool(false) -PHP Warning: input_has_variable() expects parameter 2 to be string, array given in %s on line %d Warning: input_has_variable() expects parameter 2 to be string, array given in %s on line %d NULL @@ -44,24 +43,19 @@ bool(true) bool(false) bool(false) bool(false) -PHP Warning: input_has_variable() expects parameter 2 to be string, array given in %s on line %d Warning: input_has_variable() expects parameter 2 to be string, array given in %s on line %d NULL bool(false) -PHP Warning: input_has_variable() expects parameter 1 to be long, string given in %s on line %d Warning: input_has_variable() expects parameter 1 to be long, string given in %s on line %d NULL -PHP Warning: input_has_variable() expects parameter 1 to be long, array given in %s on line %d Warning: input_has_variable() expects parameter 1 to be long, array given in %s on line %d NULL -PHP Warning: input_has_variable() expects parameter 1 to be long, array given in %s on line %d Warning: input_has_variable() expects parameter 1 to be long, array given in %s on line %d NULL -PHP Warning: input_has_variable() expects parameter 1 to be long, string given in %s on line %d Warning: input_has_variable() expects parameter 1 to be long, string given in %s on line %d NULL diff --git a/ext/filter/tests/011.phpt b/ext/filter/tests/011.phpt index 0d3fa42745..f71436d9e4 100644 --- a/ext/filter/tests/011.phpt +++ b/ext/filter/tests/011.phpt @@ -28,22 +28,19 @@ echo "Done\n"; string(4) "test" string(18) "http://example.com" string(27) "<b>test</b>" -NULL +bool(false) string(6) "string" float(12345.7) string(29) "<p>string</p>" -NULL -PHP Warning: input_get() expects parameter 1 to be long, object given in %s on line %d +bool(false) Warning: input_get() expects parameter 1 to be long, object given in %s on line %d NULL -PHP Warning: input_get() expects parameter 3 to be long, string given in %s on line %d Warning: input_get() expects parameter 3 to be long, string given in %s on line %d NULL -PHP Warning: input_get() expects parameter 1 to be long, string given in %s on line %d Warning: input_get() expects parameter 1 to be long, string given in %s on line %d NULL -bool(false) +NULL Done diff --git a/ext/filter/tests/014.phpt b/ext/filter/tests/014.phpt index f31fe6e9f4..aab2e7979b 100644 --- a/ext/filter/tests/014.phpt +++ b/ext/filter/tests/014.phpt @@ -3,8 +3,19 @@ filter_data() and FILTER_VALIDATE_BOOLEAN --FILE-- --EXPECTF-- bool(false) - -Notice: Object of class stdClass to string conversion in %s on line %d -NULL +bool(false) +bool(false) +array(5) { + [0]=> + bool(true) + [1]=> + bool(false) + [2]=> + bool(false) + [3]=> + bool(false) + [4]=> + array(2) { + [0]=> + bool(false) + [1]=> + bool(false) + } +} bool(true) bool(true) bool(false) @@ -33,9 +60,9 @@ bool(false) bool(true) bool(false) bool(true) -NULL bool(false) -NULL -NULL -NULL +bool(false) +bool(false) +bool(false) +bool(false) Done diff --git a/ext/filter/tests/033.phpt b/ext/filter/tests/033.phpt index c6ec13323e..c8a82db5f5 100644 --- a/ext/filter/tests/033.phpt +++ b/ext/filter/tests/033.phpt @@ -2,7 +2,7 @@ Test all filters returned by input_filters_list() --FILE-- --EXPECT-- int 1 123 diff --git a/ext/filter/tests/033_run.php b/ext/filter/tests/033_run.inc similarity index 100% rename from ext/filter/tests/033_run.php rename to ext/filter/tests/033_run.inc