010.phpt 891 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --TEST--
  2. timezone_abbreviations_list() tests
  3. --FILE--
  4. <?php
  5. date_default_timezone_set('UTC');
  6. $timezone_abbreviations = timezone_abbreviations_list();
  7. var_dump($timezone_abbreviations["utc"]);
  8. echo "Done\n";
  9. ?>
  10. --EXPECT--
  11. array(5) {
  12. [0]=>
  13. array(3) {
  14. ["dst"]=>
  15. bool(false)
  16. ["offset"]=>
  17. int(0)
  18. ["timezone_id"]=>
  19. string(13) "Etc/Universal"
  20. }
  21. [1]=>
  22. array(3) {
  23. ["dst"]=>
  24. bool(false)
  25. ["offset"]=>
  26. int(0)
  27. ["timezone_id"]=>
  28. string(7) "Etc/UTC"
  29. }
  30. [2]=>
  31. array(3) {
  32. ["dst"]=>
  33. bool(false)
  34. ["offset"]=>
  35. int(0)
  36. ["timezone_id"]=>
  37. string(8) "Etc/Zulu"
  38. }
  39. [3]=>
  40. array(3) {
  41. ["dst"]=>
  42. bool(false)
  43. ["offset"]=>
  44. int(0)
  45. ["timezone_id"]=>
  46. string(3) "UTC"
  47. }
  48. [4]=>
  49. array(3) {
  50. ["dst"]=>
  51. bool(false)
  52. ["offset"]=>
  53. int(0)
  54. ["timezone_id"]=>
  55. string(3) "UTC"
  56. }
  57. }
  58. Done