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";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2010-12-12 16:06:41 +00:00
|
|
|
array(6) {
|
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"]=>
|
2010-11-28 13:41:06 +00:00
|
|
|
string(13) "Etc/Universal"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
|
|
|
[1]=>
|
|
|
|
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(7) "Etc/UTC"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
|
|
|
[2]=>
|
|
|
|
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(8) "Etc/Zulu"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
|
|
|
[3]=>
|
|
|
|
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) "GMT"
|
2006-12-22 13:07:53 +00:00
|
|
|
}
|
|
|
|
[4]=>
|
|
|
|
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
|
|
|
}
|
2010-12-12 16:06:41 +00:00
|
|
|
[5]=>
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
Done
|