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

1.1     ! misho       1: --TEST--
        !             2: Test idate() function : basic functionality 
        !             3: --FILE--
        !             4: <?php
        !             5: /* Prototype  : int idate(string format [, int timestamp])
        !             6:  * Description: Format a local time/date as integer 
        !             7:  * Source code: ext/date/php_date.c
        !             8:  * Alias to functions: 
        !             9:  */
        !            10: 
        !            11: echo "*** Testing idate() : basic functionality ***\n";
        !            12: 
        !            13: // Initialise all required variables
        !            14: $format = 'Y';
        !            15: 
        !            16: // Calling idate() with mandatory arguments
        !            17: date_default_timezone_set("Asia/Calcutta");
        !            18: var_dump( idate($format) );
        !            19: ?>
        !            20: ===DONE===
        !            21: --EXPECTF--
        !            22: *** Testing idate() : basic functionality ***
        !            23: int(%d)
        !            24: ===DONE===

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