Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / ext / imap / tests / imap_undelete_error.phpt
blobc82801e15a3deda3c180ab7e1b8f175a5721f0e6
1 --TEST--
2 imap_undelete() incorrect parameter count
3 --CREDITS--
4 Olivier Doucet
5 --SKIPIF--
6 <?php
7 require_once(dirname(__FILE__).'/skipif.inc');
8 ?>
9 --FILE--
10 <?php
11 echo "Checking with no parameters\n";
12 imap_undelete();
14 echo  "Checking with incorrect parameter type\n";
15 imap_undelete('');
16 imap_undelete(false);
18 require_once(dirname(__FILE__).'/imap_include.inc');
19 $stream_id = imap_open($default_mailbox, $username, $password) or 
20         die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
21         
22 imap_undelete($stream_id);
24 imap_close($stream_id);
26 --EXPECTF--
27 Checking with no parameters
29 Warning: imap_undelete() expects at least 2 parameters, 0 given in %s on line %d
30 Checking with incorrect parameter type
32 Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d
34 Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d
36 Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d