1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/date/tests/010.phpt
2015-09-22 08:42:12 +01:00

68 lines
1.0 KiB
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(6) {
[0]=>
array(3) {
["dst"]=>
bool(false)
["offset"]=>
int(0)
["timezone_id"]=>
string(16) "Antarctica/Troll"
}
[1]=>
array(3) {
["dst"]=>
bool(false)
["offset"]=>
int(0)
["timezone_id"]=>
string(13) "Etc/Universal"
}
[2]=>
array(3) {
["dst"]=>
bool(false)
["offset"]=>
int(0)
["timezone_id"]=>
string(7) "Etc/UTC"
}
[3]=>
array(3) {
["dst"]=>
bool(false)
["offset"]=>
int(0)
["timezone_id"]=>
string(8) "Etc/Zulu"
}
[4]=>
array(3) {
["dst"]=>
bool(false)
["offset"]=>
int(0)
["timezone_id"]=>
string(3) "UTC"
}
[5]=>
array(3) {
["dst"]=>
bool(false)
["offset"]=>
int(0)
["timezone_id"]=>
string(3) "UTC"
}
}
Done