Lines Matching refs:imap_fetch_overview
2 Test imap_fetch_overview() function : error conditions - incorrect number of args
9 /* Prototype : array imap_fetch_overview(resource $stream_id, int $msg_no [, int $options])
16 * Pass an incorrect number of arguments to imap_fetch_overview() to test behaviour
19 echo "*** Testing imap_fetch_overview() : error conditions ***\n";
23 //Test imap_fetch_overview with one more than the expected number of arguments
24 echo "\n-- Testing imap_fetch_overview() function with more than expected no. of arguments --\n";
29 var_dump( imap_fetch_overview($stream_id, $msg_no, $options, $extra_arg) );
31 // Testing imap_fetch_overview with one less than the expected number of arguments
32 echo "\n-- Testing imap_fetch_overview() function with less than expected no. of arguments --\n";
33 var_dump( imap_fetch_overview($stream_id) );
41 *** Testing imap_fetch_overview() : error conditions ***
43 -- Testing imap_fetch_overview() function with more than expected no. of arguments --
47 Warning: imap_fetch_overview() expects at most 3 parameters, 4 given in %s on line %d
50 -- Testing imap_fetch_overview() function with less than expected no. of arguments --
52 Warning: imap_fetch_overview() expects at least 2 parameters, 1 given in %s on line %d