1--TEST--
2Test new DateTimeZone() : basic functionality
3--FILE--
4<?php
5/* Prototype  : DateTimeZone::__construct  ( string $timezone  )
6 * Description: Returns new DateTimeZone object
7 * Source code: ext/date/php_date.c
8 * Alias to functions:
9 */
10
11//Set the default time zone
12date_default_timezone_set("Europe/London");
13
14echo "*** Testing new DateTimeZone() : basic functionality ***\n";
15
16var_dump( new DateTimeZone("GMT") );
17var_dump( new DateTimeZone("Europe/London") );
18var_dump( new DateTimeZone("America/Los_Angeles") );
19
20?>
21===DONE===
22--EXPECTF--
23*** Testing new DateTimeZone() : basic functionality ***
24object(DateTimeZone)#%d (2) {
25  ["timezone_type"]=>
26  int(2)
27  ["timezone"]=>
28  string(3) "GMT"
29}
30object(DateTimeZone)#%d (2) {
31  ["timezone_type"]=>
32  int(3)
33  ["timezone"]=>
34  string(13) "Europe/London"
35}
36object(DateTimeZone)#%d (2) {
37  ["timezone_type"]=>
38  int(3)
39  ["timezone"]=>
40  string(19) "America/Los_Angeles"
41}
42===DONE===
43