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

68 lines
1017 B
Plaintext
Raw Normal View History

2006-12-22 13:07:53 +00:00
--TEST--
timezone_abbreviations_list() tests
--FILE--
<?php
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--
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
}
[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