From: Felipe Pena Date: Thu, 28 Feb 2008 15:28:00 +0000 (+0000) Subject: Fixed tests X-Git-Tag: RELEASE_2_0_0a1~297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=748677148c412eda1eeb9b17cce2dd1308eaef20;p=php Fixed tests --- diff --git a/ext/standard/tests/file/get_current_user.phpt b/ext/standard/tests/file/get_current_user.phpt index f9e2e50b9a..ce45552ad6 100644 --- a/ext/standard/tests/file/get_current_user.phpt +++ b/ext/standard/tests/file/get_current_user.phpt @@ -9,12 +9,12 @@ var_dump(get_current_user()); echo "Done\n"; ?> --EXPECTF-- -Warning: Wrong parameter count for get_current_user() in %s on line %d +Warning: get_current_user() expects exactly 0 parameters, 1 given in %s on line %d NULL string(%d) %s Done --UEXPECTF-- -Warning: Wrong parameter count for get_current_user() in %s on line %d +Warning: get_current_user() expects exactly 0 parameters, 1 given in %s on line %d NULL unicode(%d) %s Done diff --git a/ext/standard/tests/general_functions/rand.phpt b/ext/standard/tests/general_functions/rand.phpt index e75bd6d374..e3ad8ded22 100644 --- a/ext/standard/tests/general_functions/rand.phpt +++ b/ext/standard/tests/general_functions/rand.phpt @@ -54,10 +54,10 @@ Warning: mt_srand() expects parameter 1 to be long, array given in %s on line %d NULL int(%d) -Warning: Wrong parameter count for getrandmax() in %s on line %d +Warning: getrandmax() expects exactly 0 parameters, 1 given in %s on line %d NULL int(%d) -Warning: Wrong parameter count for mt_getrandmax() in %s on line %d +Warning: mt_getrandmax() expects exactly 0 parameters, 1 given in %s on line %d NULL Done diff --git a/ext/standard/tests/math/getrandmax_error.phpt b/ext/standard/tests/math/getrandmax_error.phpt index 9f244a2a6a..6cc87ff468 100644 --- a/ext/standard/tests/math/getrandmax_error.phpt +++ b/ext/standard/tests/math/getrandmax_error.phpt @@ -5,5 +5,5 @@ Test getrandmax() - wrong params test getrandmax() var_dump($biggest_int = getrandmax(true)); ?> --EXPECTF-- -Warning: Wrong parameter count for getrandmax() in %s on line 2 +Warning: getrandmax() expects exactly 0 parameters, 1 given in %s on line 2 NULL diff --git a/ext/standard/tests/math/mt_getrandmax_error.phpt b/ext/standard/tests/math/mt_getrandmax_error.phpt index b30da3a91c..f360d12aec 100644 --- a/ext/standard/tests/math/mt_getrandmax_error.phpt +++ b/ext/standard/tests/math/mt_getrandmax_error.phpt @@ -5,5 +5,5 @@ Test mt_getrandmax() - wrong paramas mt_getrandmax() var_dump(mt_getrandmax(true)); ?> --EXPECTF-- -Warning: Wrong parameter count for mt_getrandmax() in %s on line 2 -NULL \ No newline at end of file +Warning: mt_getrandmax() expects exactly 0 parameters, 1 given in %s on line 2 +NULL diff --git a/ext/standard/tests/strings/setlocale_error.phpt b/ext/standard/tests/strings/setlocale_error.phpt index 161dce0e15..080d922c6e 100644 --- a/ext/standard/tests/strings/setlocale_error.phpt +++ b/ext/standard/tests/strings/setlocale_error.phpt @@ -61,7 +61,7 @@ bool(false) -- Testing setlocale() function with invalid category -- -Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead in %s on line %d +Deprecated: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead in %s on line %d Warning: setlocale(): Invalid locale category name TEST, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in %s on line %d bool(false) diff --git a/sapi/cli/tests/006.phpt b/sapi/cli/tests/006.phpt index c121f74e72..fa18133194 100644 --- a/sapi/cli/tests/006.phpt +++ b/sapi/cli/tests/006.phpt @@ -7,16 +7,14 @@ if (!extension_loaded("reflection")) { die("skip"); } ?> ---INI-- -date.timezone= --FILE-- @@ -25,77 +23,339 @@ string(44) "Exception: Extension unknown does not exist " string(37) "Exception: Extension does not exist " -string(%d) "Extension [ extension #%d pcre version ] { +string(9650) "Extension [ extension #20 date version 6.0.0-dev ] { + + - Dependencies { + Dependency [ session (Optional) ] + } - INI { - Entry [ pcre.backtrack_limit ] - Current = '%d' + Entry [ date.timezone ] + Current = '' + } + Entry [ date.default_latitude ] + Current = '31.7667' + } + Entry [ date.default_longitude ] + Current = '35.2333' } - Entry [ pcre.recursion_limit ] - Current = '%d' + Entry [ date.sunset_zenith ] + Current = '90.583333' + } + Entry [ date.sunrise_zenith ] + Current = '90.583333' } } - - Constants [13] { - Constant [ integer PREG_PATTERN_ORDER ] { 1 } - Constant [ integer PREG_SET_ORDER ] { 2 } - Constant [ integer PREG_OFFSET_CAPTURE ] { 256 } - Constant [ integer PREG_SPLIT_NO_EMPTY ] { 1 } - Constant [ integer PREG_SPLIT_DELIM_CAPTURE ] { 2 } - Constant [ integer PREG_SPLIT_OFFSET_CAPTURE ] { 4 } - Constant [ integer PREG_GREP_INVERT ] { 1 } - Constant [ integer PREG_NO_ERROR ] { 0 } - Constant [ integer PREG_INTERNAL_ERROR ] { 1 } - Constant [ integer PREG_BACKTRACK_LIMIT_ERROR ] { 2 } - Constant [ integer PREG_RECURSION_LIMIT_ERROR ] { 3 } - Constant [ integer PREG_BAD_UTF8_ERROR ] { 4 } - Constant [ string PCRE_VERSION ] { %s } + - Constants [14] { + Constant [ string DATE_ATOM ] { Y-m-d\TH:i:sP } + Constant [ string DATE_COOKIE ] { l, d-M-y H:i:s T } + Constant [ string DATE_ISO8601 ] { Y-m-d\TH:i:sO } + Constant [ string DATE_RFC822 ] { D, d M y H:i:s O } + Constant [ string DATE_RFC850 ] { l, d-M-y H:i:s T } + Constant [ string DATE_RFC1036 ] { D, d M y H:i:s O } + Constant [ string DATE_RFC1123 ] { D, d M Y H:i:s O } + Constant [ string DATE_RFC2822 ] { D, d M Y H:i:s O } + Constant [ string DATE_RFC3339 ] { Y-m-d\TH:i:sP } + Constant [ string DATE_RSS ] { D, d M Y H:i:s O } + Constant [ string DATE_W3C ] { Y-m-d\TH:i:sP } + Constant [ integer SUNFUNCS_RET_TIMESTAMP ] { 0 } + Constant [ integer SUNFUNCS_RET_STRING ] { 1 } + Constant [ integer SUNFUNCS_RET_DOUBLE ] { 2 } } - Functions { - Function [ function preg_match ] { + Function [ function strtotime ] { - - Parameters [3] { - Parameter #0 [ $param0 ] - Parameter #1 [ $param1 ] - Parameter #2 [ &$param2 ] + - Parameters [2] { + Parameter #0 [ $time ] + Parameter #1 [ $now ] + } + } + Function [ function date ] { + + - Parameters [2] { + Parameter #0 [ $format ] + Parameter #1 [ $timestamp ] } } - Function [ function preg_match_all ] { + Function [ function idate ] { + + - Parameters [2] { + Parameter #0 [ $format ] + Parameter #1 [ $timestamp ] + } + } + Function [ function gmdate ] { + + - Parameters [2] { + Parameter #0 [ $format ] + Parameter #1 [ $timestamp ] + } + } + Function [ function mktime ] { + + - Parameters [6] { + Parameter #0 [ $hour ] + Parameter #1 [ $min ] + Parameter #2 [ $sec ] + Parameter #3 [ $mon ] + Parameter #4 [ $day ] + Parameter #5 [ $year ] + } + } + Function [ function gmmktime ] { + + - Parameters [6] { + Parameter #0 [ $hour ] + Parameter #1 [ $min ] + Parameter #2 [ $sec ] + Parameter #3 [ $mon ] + Parameter #4 [ $day ] + Parameter #5 [ $year ] + } + } + Function [ function checkdate ] { - Parameters [3] { - Parameter #0 [ $param0 ] - Parameter #1 [ $param1 ] - Parameter #2 [ &$param2 ] + Parameter #0 [ $month ] + Parameter #1 [ $day ] + Parameter #2 [ $year ] } } - Function [ function preg_replace ] { + Function [ function strftime ] { - - Parameters [5] { - Parameter #0 [ $param0 ] - Parameter #1 [ $param1 ] - Parameter #2 [ $param2 ] - Parameter #3 [ $param3 ] - Parameter #4 [ &$param4 ] + - Parameters [2] { + Parameter #0 [ $format ] + Parameter #1 [ $timestamp ] } } - Function [ function preg_replace_callback ] { + Function [ function gmstrftime ] { - - Parameters [5] { - Parameter #0 [ $param0 ] - Parameter #1 [ $param1 ] - Parameter #2 [ $param2 ] - Parameter #3 [ $param3 ] - Parameter #4 [ &$param4 ] + - Parameters [2] { + Parameter #0 [ $format ] + Parameter #1 [ $timestamp ] } } - Function [ function preg_split ] { + Function [ function time ] { + + - Parameters [0] { + } } - Function [ function preg_quote ] { + Function [ function localtime ] { + + - Parameters [2] { + Parameter #0 [ $timestamp ] + Parameter #1 [ $associative_array ] + } } - Function [ function preg_grep ] { + Function [ function getdate ] { + + - Parameters [1] { + Parameter #0 [ $timestamp ] + } + } + Function [ function date_create ] { + } + Function [ function date_create_from_format ] { + } + Function [ function date_parse ] { + } + Function [ function date_parse_from_format ] { + } + Function [ function date_get_last_errors ] { + } + Function [ function date_format ] { + } + Function [ function date_format_locale ] { + } + Function [ function date_modify ] { + } + Function [ function date_timezone_get ] { + } + Function [ function date_timezone_set ] { + } + Function [ function date_offset_get ] { + } + Function [ function date_time_set ] { + } + Function [ function date_date_set ] { + } + Function [ function date_isodate_set ] { + } + Function [ function date_timestamp_set ] { + } + Function [ function date_timestamp_get ] { + } + Function [ function timezone_open ] { + } + Function [ function timezone_name_get ] { + } + Function [ function timezone_name_from_abbr ] { + } + Function [ function timezone_offset_get ] { + } + Function [ function timezone_transitions_get ] { + } + Function [ function timezone_identifiers_list ] { + } + Function [ function timezone_abbreviations_list ] { + } + Function [ function date_default_timezone_set ] { + + - Parameters [1] { + Parameter #0 [ $timezone_identifier ] + } } - Function [ function preg_last_error ] { + Function [ function date_default_timezone_get ] { + + - Parameters [0] { + } + } + Function [ function date_sunrise ] { + + - Parameters [6] { + Parameter #0 [ $time ] + Parameter #1 [ $format ] + Parameter #2 [ $latitude ] + Parameter #3 [ $longitude ] + Parameter #4 [ $zenith ] + Parameter #5 [ $gmt_offset ] + } + } + Function [ function date_sunset ] { + + - Parameters [6] { + Parameter #0 [ $time ] + Parameter #1 [ $format ] + Parameter #2 [ $latitude ] + Parameter #3 [ $longitude ] + Parameter #4 [ $zenith ] + Parameter #5 [ $gmt_offset ] + } + } + Function [ function date_sun_info ] { + + - Parameters [3] { + Parameter #0 [ $time ] + Parameter #1 [ $latitude ] + Parameter #2 [ $longitude ] + } + } + } + + - Classes [2] { + Class [ class DateTime ] { + + - Constants [11] { + Constant [ string ATOM ] { Y-m-d\TH:i:sP } + Constant [ string COOKIE ] { l, d-M-y H:i:s T } + Constant [ string ISO8601 ] { Y-m-d\TH:i:sO } + Constant [ string RFC822 ] { D, d M y H:i:s O } + Constant [ string RFC850 ] { l, d-M-y H:i:s T } + Constant [ string RFC1036 ] { D, d M y H:i:s O } + Constant [ string RFC1123 ] { D, d M Y H:i:s O } + Constant [ string RFC2822 ] { D, d M Y H:i:s O } + Constant [ string RFC3339 ] { Y-m-d\TH:i:sP } + Constant [ string RSS ] { D, d M Y H:i:s O } + Constant [ string W3C ] { Y-m-d\TH:i:sP } + } + + - Static properties [0] { + } + + - Static methods [2] { + Method [ static public method createFromFormat ] { + } + + Method [ static public method getLastErrors ] { + } + } + + - Properties [0] { + } + + - Methods [11] { + Method [ public method __construct ] { + } + + Method [ public method format ] { + } + + Method [ public method modify ] { + } + + Method [ public method getTimezone ] { + } + + Method [ public method setTimezone ] { + } + + Method [ public method getOffset ] { + } + + Method [ public method setTime ] { + } + + Method [ public method setDate ] { + } + + Method [ public method setISODate ] { + } + + Method [ public method setTimestamp ] { + } + + Method [ public method getTimestamp ] { + } + } + } + + Class [ class DateTimeZone ] { + + - Constants [13] { + Constant [ integer AFRICA ] { 1 } + Constant [ integer AMERICA ] { 2 } + Constant [ integer ANTARCTICA ] { 4 } + Constant [ integer ARCTIC ] { 8 } + Constant [ integer ASIA ] { 16 } + Constant [ integer ATLANTIC ] { 32 } + Constant [ integer AUSTRALIA ] { 64 } + Constant [ integer EUROPE ] { 128 } + Constant [ integer INDIAN ] { 256 } + Constant [ integer PACIFIC ] { 512 } + Constant [ integer UTC ] { 1024 } + Constant [ integer ALL ] { 2047 } + Constant [ integer ALL_WITH_BC ] { 4095 } + } + + - Static properties [0] { + } + + - Static methods [2] { + Method [ static public method listAbbreviations ] { + } + + Method [ static public method listIdentifiers ] { + } + } + + - Properties [0] { + } + + - Methods [4] { + Method [ public method __construct ] { + } + + Method [ public method getName ] { + } + + Method [ public method getOffset ] { + } + + Method [ public method getTransitions ] { + } + } } } }