Annotation of embedaddon/php/ext/imap/tests/imap_alerts_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test imap_alerts() function : error conditions 
        !             3: --SKIPIF--
        !             4: <?php
        !             5: require_once(dirname(__FILE__).'/skipif.inc');
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: /* Prototype  : array imap_alerts(void)
        !            10:  * Description: Returns an array of all IMAP alerts that have been generated since the last page load or since the last imap_alerts() call, whichever came last. The alert stack is cleared after imap_alerts() is called. 
        !            11:  * Source code: ext/imap/php_imap.c
        !            12:  * Alias to functions: 
        !            13:  */
        !            14: 
        !            15: echo "*** Testing imap_alerts() : error conditions ***\n";
        !            16: 
        !            17: // One argument
        !            18: echo "\n-- Testing imap_alerts() function with one argument --\n";
        !            19: $extra_arg = 10;;
        !            20: var_dump( imap_alerts($extra_arg) );
        !            21: 
        !            22: ?>
        !            23: ===DONE===
        !            24: --EXPECTF--
        !            25: *** Testing imap_alerts() : error conditions ***
        !            26: 
        !            27: -- Testing imap_alerts() function with one argument --
        !            28: 
        !            29: Warning: imap_alerts() expects exactly 0 parameters, 1 given in %s on line %d
        !            30: NULL
        !            31: ===DONE===

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