xref: /PHP-5.3/ext/date/tests/011.phpt (revision a9e5e222)
1--TEST--
2timezone_name_from_abbr() tests
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6
7var_dump(timezone_name_from_abbr());
8var_dump(timezone_name_from_abbr("CET"));
9var_dump(timezone_name_from_abbr("AEST"));
10var_dump(timezone_name_from_abbr("", 3600));
11var_dump(timezone_name_from_abbr("", 3600, 0));
12
13echo "Done\n";
14?>
15--EXPECTF--
16Warning: timezone_name_from_abbr() expects at least 1 parameter, 0 given in %s on line %d
17bool(false)
18string(13) "Europe/Berlin"
19bool(false)
20bool(false)
21string(12) "Europe/Paris"
22Done
23