xref: /PHP-8.0/ext/date/tests/011.phpt (revision 852485d8)
1--TEST--
2timezone_name_from_abbr() tests
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6
7var_dump(timezone_name_from_abbr("CET"));
8var_dump(timezone_name_from_abbr("AXST"));
9var_dump(timezone_name_from_abbr("", 3600));
10var_dump(timezone_name_from_abbr("", 3600, 0));
11
12echo "Done\n";
13?>
14--EXPECT--
15string(13) "Europe/Berlin"
16bool(false)
17bool(false)
18string(12) "Europe/Paris"
19Done
20