1--TEST--
2Test DateTimeZone::getName() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing DateTimeZone::getName() : basic functionality ***\n";
6
7//Set the default time zone
8date_default_timezone_set("GMT");
9
10$tz1 = new DateTimeZone("Europe/London");
11var_dump( $tz1->getName() );
12
13$tz2 = new DateTimeZone("America/New_York");
14var_dump( $tz2->getName() );
15
16$tz3 = new DateTimeZone("America/Los_Angeles");
17var_dump( $tz3->getName() );
18
19?>
20--EXPECT--
21*** Testing DateTimeZone::getName() : basic functionality ***
22string(13) "Europe/London"
23string(16) "America/New_York"
24string(19) "America/Los_Angeles"
25