Annotation of embedaddon/php/ext/date/tests/DateTimeZone_construct_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test 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 
                     12: date_default_timezone_set("Europe/London");
                     13: 
                     14: echo "*** Testing new DateTimeZone() : basic functionality ***\n";
                     15: 
                     16: var_dump( new DateTimeZone("GMT") );
                     17: var_dump( new DateTimeZone("Europe/London") );
                     18: var_dump( new DateTimeZone("America/Los_Angeles") );
                     19: 
                     20: ?>
                     21: ===DONE===
                     22: --EXPECTF--
                     23: *** Testing new DateTimeZone() : basic functionality ***
                     24: object(DateTimeZone)#%d (0) {
                     25: }
                     26: object(DateTimeZone)#%d (0) {
                     27: }
                     28: object(DateTimeZone)#%d (0) {
                     29: }
                     30: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>