mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
59 lines
892 B
PHP
59 lines
892 B
PHP
--TEST--
|
|
timezone_abbreviations_list() tests
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('UTC');
|
|
$timezone_abbreviations = timezone_abbreviations_list();
|
|
var_dump($timezone_abbreviations["utc"]);
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
array(5) {
|
|
[0]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(13) "Etc/Universal"
|
|
}
|
|
[1]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(7) "Etc/UTC"
|
|
}
|
|
[2]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(8) "Etc/Zulu"
|
|
}
|
|
[3]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(3) "UTC"
|
|
}
|
|
[4]=>
|
|
array(3) {
|
|
["dst"]=>
|
|
bool(false)
|
|
["offset"]=>
|
|
int(0)
|
|
["timezone_id"]=>
|
|
string(3) "UTC"
|
|
}
|
|
}
|
|
Done
|