mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
23 lines
521 B
PHP
23 lines
521 B
PHP
--TEST--
|
|
timezone_name_from_abbr() tests
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('UTC');
|
|
|
|
var_dump(timezone_name_from_abbr());
|
|
var_dump(timezone_name_from_abbr("CET"));
|
|
var_dump(timezone_name_from_abbr("AEST"));
|
|
var_dump(timezone_name_from_abbr("", 3600));
|
|
var_dump(timezone_name_from_abbr("", 3600, 0));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: timezone_name_from_abbr() expects at least 1 parameter, 0 given in %s on line %d
|
|
bool(false)
|
|
string(13) "Europe/Berlin"
|
|
bool(false)
|
|
bool(false)
|
|
string(12) "Europe/Paris"
|
|
Done
|