xref: /PHP-8.4/ext/date/tests/010.phpt (revision ded3d984)
1--TEST--
2timezone_abbreviations_list() tests
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6  $timezone_abbreviations = timezone_abbreviations_list();
7  var_dump($timezone_abbreviations["utc"]);
8  echo "Done\n";
9?>
10--EXPECT--
11array(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}
58Done
59