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