1--TEST--
2Test new DateTimeZone() : basic functionality
3--FILE--
4<?php
5//Set the default time zone
6date_default_timezone_set("Europe/London");
7
8echo "*** Testing new DateTimeZone() : basic functionality ***\n";
9
10var_dump( new DateTimeZone("GMT") );
11var_dump( new DateTimeZone("Europe/London") );
12var_dump( new DateTimeZone("America/Los_Angeles") );
13
14?>
15--EXPECTF--
16*** Testing new DateTimeZone() : basic functionality ***
17object(DateTimeZone)#%d (2) {
18  ["timezone_type"]=>
19  int(2)
20  ["timezone"]=>
21  string(3) "GMT"
22}
23object(DateTimeZone)#%d (2) {
24  ["timezone_type"]=>
25  int(3)
26  ["timezone"]=>
27  string(13) "Europe/London"
28}
29object(DateTimeZone)#%d (2) {
30  ["timezone_type"]=>
31  int(3)
32  ["timezone"]=>
33  string(19) "America/Los_Angeles"
34}
35