2006-12-22 13:07:53 +00:00
|
|
|
--TEST--
|
|
|
|
timezone_abbreviations_list() tests
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2009-01-10 00:50:45 +00:00
|
|
|
date_default_timezone_set('UTC');
|
2006-12-22 13:07:53 +00:00
|
|
|
$timezone_abbreviations = timezone_abbreviations_list();
|
2010-11-28 13:41:06 +00:00
|
|
|
var_dump($timezone_abbreviations["utc"]);
|
2006-12-22 13:07:53 +00:00
|
|
|
echo "Done\n";
|
|
|
|
?>
|
2018-02-19 08:59:41 +00:00
|
|
|
--EXPECT--
|
2016-10-05 15:24:15 +00:00
|
|
|
array(5) {
|
2006-12-22 13:07:53 +00:00
|
|
|
[0]=>
|
|
|
|
array(3) {
|
|
|
|
["dst"]=>
|
|
|
|
bool(false)
|
|
|
|
["offset"]=>
|
2010-11-28 13:41:06 +00:00
|
|
|
int(0)
|
2006-12-22 13:07:53 +00:00
|
|
|
["timezone_id"]=>
|
2015-01-19 22:59:24 +00:00
|
|
|
string(13) "Etc/Universal"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
2016-10-05 15:24:15 +00:00
|
|
|
[1]=>
|
2006-12-22 13:07:53 +00:00
|
|
|
array(3) {
|
|
|
|
["dst"]=>
|
|
|
|
bool(false)
|
|
|
|
["offset"]=>
|
2010-11-28 13:41:06 +00:00
|
|
|
int(0)
|
2006-12-22 13:07:53 +00:00
|
|
|
["timezone_id"]=>
|
2015-01-19 22:59:24 +00:00
|
|
|
string(7) "Etc/UTC"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
2016-10-05 15:24:15 +00:00
|
|
|
[2]=>
|
2006-12-22 13:07:53 +00:00
|
|
|
array(3) {
|
|
|
|
["dst"]=>
|
|
|
|
bool(false)
|
|
|
|
["offset"]=>
|
2010-11-28 13:41:06 +00:00
|
|
|
int(0)
|
2006-12-22 13:07:53 +00:00
|
|
|
["timezone_id"]=>
|
2015-01-19 22:59:24 +00:00
|
|
|
string(8) "Etc/Zulu"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
2016-10-05 15:24:15 +00:00
|
|
|
[3]=>
|
2006-12-22 13:07:53 +00:00
|
|
|
array(3) {
|
|
|
|
["dst"]=>
|
|
|
|
bool(false)
|
|
|
|
["offset"]=>
|
2010-11-28 13:41:06 +00:00
|
|
|
int(0)
|
2006-12-22 13:07:53 +00:00
|
|
|
["timezone_id"]=>
|
2010-11-28 13:41:06 +00:00
|
|
|
string(3) "UTC"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
2016-10-05 15:24:15 +00:00
|
|
|
[4]=>
|
2015-01-19 22:59:24 +00:00
|
|
|
array(3) {
|
|
|
|
["dst"]=>
|
|
|
|
bool(false)
|
|
|
|
["offset"]=>
|
|
|
|
int(0)
|
|
|
|
["timezone_id"]=>
|
|
|
|
string(3) "UTC"
|
|
|
|
}
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
|
|
|
Done
|