Annotation of embedaddon/php/ext/date/tests/gmdate_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test gmdate() function : basic functionality 
        !             3: --FILE--
        !             4: <?php
        !             5: /* Prototype  : string gmdate(string format [, long timestamp])
        !             6:  * Description: Format a GMT date/time 
        !             7:  * Source code: ext/date/php_date.c
        !             8:  * Alias to functions: 
        !             9:  */
        !            10: 
        !            11: echo "*** Testing gmdate() : basic functionality ***\n";
        !            12: 
        !            13: // Initialise all required variables
        !            14: date_default_timezone_set('UTC');
        !            15: $format = DATE_ISO8601;
        !            16: $timestamp = mktime(8, 8, 8, 8, 8, 2008);
        !            17: 
        !            18: // Calling gmdate() with all possible arguments
        !            19: var_dump( gmdate($format, $timestamp) );
        !            20: 
        !            21: // Calling gmdate() with mandatory arguments
        !            22: var_dump( gmdate($format) );
        !            23: 
        !            24: ?>
        !            25: ===DONE===
        !            26: --EXPECTF--
        !            27: *** Testing gmdate() : basic functionality ***
        !            28: string(24) "2008-08-08T08:08:08+0000"
        !            29: string(%d) "%s"
        !            30: ===DONE===

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