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

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

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