From 63d6d67aa74ea3ce22b9eb79a4a353cf1b86c7f2 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 3 Jul 2008 07:41:58 +0000 Subject: [PATCH] fix tests --- .../general_functions/is_float_64bit.phpt | 18 ++++++------------ .../tests/general_functions/is_int_64bit.phpt | 18 ++++++------------ .../general_functions/var_dump_64bit.phpt | 2 +- 3 files changed, 13 insertions(+), 25 deletions(-) diff --git a/ext/standard/tests/general_functions/is_float_64bit.phpt b/ext/standard/tests/general_functions/is_float_64bit.phpt index 3ebd925d6b..05dd1c3a4a 100644 --- a/ext/standard/tests/general_functions/is_float_64bit.phpt +++ b/ext/standard/tests/general_functions/is_float_64bit.phpt @@ -142,12 +142,6 @@ var_dump( is_real( $floats[0], $floats[1]) ); echo "Done\n"; ?> - ---CLEAN-- -// close the resources used -fclose($fp); -closedir($dfp); - --EXPECTF-- *** Testing is_float(), is_double() and is_real() with float values*** -- Iteration 1 -- @@ -423,21 +417,21 @@ bool(false) *** Testing error conditions *** -Warning: is_float(): Only one argument expected in %s on line %d +Warning: is_float() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -Warning: is_double(): Only one argument expected in %s on line %d +Warning: is_double() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -Warning: is_real(): Only one argument expected in %s on line %d +Warning: is_real() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -Warning: is_float(): Only one argument expected in %s on line %d +Warning: is_float() expects exactly 1 parameter, 2 given in %s on line %d bool(false) -Warning: is_double(): Only one argument expected in %s on line %d +Warning: is_double() expects exactly 1 parameter, 2 given in %s on line %d bool(false) -Warning: is_real(): Only one argument expected in %s on line %d +Warning: is_real() expects exactly 1 parameter, 2 given in %s on line %d bool(false) Done diff --git a/ext/standard/tests/general_functions/is_int_64bit.phpt b/ext/standard/tests/general_functions/is_int_64bit.phpt index fc53a3dfa7..9de376eb1c 100644 --- a/ext/standard/tests/general_functions/is_int_64bit.phpt +++ b/ext/standard/tests/general_functions/is_int_64bit.phpt @@ -147,12 +147,6 @@ var_dump( is_long(TRUE, FALSE) ); echo "Done\n"; ?> - ---CLEAN-- -// close the resources -fclose($fp); -closedir($dfp); - --EXPECTF-- *** Testing is_int(), is_integer() & is_long() with valid integer values *** --Iteration 1-- @@ -448,21 +442,21 @@ bool(false) *** Testing error conditions *** -Warning: is_int(): Only one argument expected in %s on line %d +Warning: is_int() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -Warning: is_integer(): Only one argument expected in %s on line %d +Warning: is_integer() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -Warning: is_long(): Only one argument expected in %s on line %d +Warning: is_long() expects exactly 1 parameter, 0 given in %s on line %d bool(false) -Warning: is_int(): Only one argument expected in %s on line %d +Warning: is_int() expects exactly 1 parameter, 2 given in %s on line %d bool(false) -Warning: is_integer(): Only one argument expected in %s on line %d +Warning: is_integer() expects exactly 1 parameter, 2 given in %s on line %d bool(false) -Warning: is_long(): Only one argument expected in %s on line %d +Warning: is_long() expects exactly 1 parameter, 2 given in %s on line %d bool(false) Done diff --git a/ext/standard/tests/general_functions/var_dump_64bit.phpt b/ext/standard/tests/general_functions/var_dump_64bit.phpt index 8c08a738ab..3772536cfd 100644 --- a/ext/standard/tests/general_functions/var_dump_64bit.phpt +++ b/ext/standard/tests/general_functions/var_dump_64bit.phpt @@ -1909,5 +1909,5 @@ string(9) "lambda_2" *** Testing error conditions *** -Warning: Wrong parameter count for var_dump() in %s on line %d +Warning: var_dump() expects at least 1 parameter, 0 given in %s on line %d Done -- 2.50.1