1--TEST--
2Test imap_alerts() function : error conditions
3--SKIPIF--
4<?php
5require_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
15echo "*** Testing imap_alerts() : error conditions ***\n";
16
17// One argument
18echo "\n-- Testing imap_alerts() function with one argument --\n";
19$extra_arg = 10;
20var_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
29Warning: imap_alerts() expects exactly 0 parameters, 1 given in %s on line %d
30NULL
31===DONE===
32