php-src/ext/date/tests/011.phpt

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