--- /dev/null
+--TEST--
+imap_body() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_body();
+
+echo "Checking with incorrect parameter type\n";
+imap_body('');
+imap_body(false);
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_body() in %s on line %d
+Checking with incorrect parameter type
+
+Warning: Wrong parameter count for imap_body() in %s on line %d
+
+Warning: Wrong parameter count for imap_body() in %s on line %d
--- /dev/null
+--TEST--
+imap_num_recent() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_num_recent();
+
+echo "Checking with incorrect parameter type\n";
+imap_num_recent('');
+imap_num_recent(false);
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_num_recent() in %s on line %d
+Checking with incorrect parameter type
+
+Warning: imap_num_recent(): supplied argument is not a valid imap resource in %s on line %d
+
+Warning: imap_num_recent(): supplied argument is not a valid imap resource in %s on line %d
--- /dev/null
+--TEST--
+imap_headers() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_headers();
+
+echo "Checking with incorrect parameter type\n";
+imap_headers('');
+imap_headers(false);
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_headers() in %s on line %d
+Checking with incorrect parameter type
+
+Warning: imap_headers(): supplied argument is not a valid imap resource in %s on line %d
+
+Warning: imap_headers(): supplied argument is not a valid imap resource in %s on line %d
--- /dev/null
+--TEST--
+imap_num_msg() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_num_msg();
+
+echo "Checking with incorrect parameter type\n";
+imap_num_msg('');
+imap_num_msg(false);
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_num_msg() in %s on line %d
+Checking with incorrect parameter type
+
+Warning: imap_num_msg(): supplied argument is not a valid imap resource in %s on line %d
+
+Warning: imap_num_msg(): supplied argument is not a valid imap resource in %s on line %d
--- /dev/null
+--TEST--
+imap_expunge() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_expunge();
+
+echo "Checking with incorrect parameter type\n";
+imap_expunge('');
+imap_expunge(false);
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_expunge() in %s on line %d
+Checking with incorrect parameter type
+
+Warning: imap_expunge(): supplied argument is not a valid imap resource in %s on line %d
+
+Warning: imap_expunge(): supplied argument is not a valid imap resource in %s on line %d
--- /dev/null
+--TEST--
+imap_open() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_open();
+imap_open(false);
+imap_open(false, false);
+imap_open('');
+imap_open('', '');
+
+echo "Checking with incorrect parameters\n" ;
+imap_open('', '', '');
+imap_open('', '', '', -1);
+
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_open() in %s on line %d
+
+Warning: Wrong parameter count for imap_open() in %s on line %d
+
+Warning: Wrong parameter count for imap_open() in %s on line %d
+
+Warning: Wrong parameter count for imap_open() in %s on line %d
+
+Warning: Wrong parameter count for imap_open() in %s on line %d
+Checking with incorrect parameters
+
+Warning: imap_open(): Couldn't open stream in %s on line %d
+
+Warning: imap_open(): Couldn't open stream in %s on line %d
+
+Notice: Unknown: Can't open mailbox : no such mailbox (errflg=2) in Unknown on line 0
--- /dev/null
+--TEST--
+imap_ping() incorrect parameter count
+--CREDITS--
+Paul Sohier
+#phptestfest utrecht
+--SKIPIF--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_ping();
+
+echo "Checking with incorrect parameter type\n";
+imap_ping('');
+imap_ping(false);
+?>
+--EXPECTF--
+Checking with no parameters
+
+Warning: Wrong parameter count for imap_ping() in %s on line %d
+Checking with incorrect parameter type
+
+Warning: imap_ping(): supplied argument is not a valid imap resource in %s on line %d
+
+Warning: imap_ping(): supplied argument is not a valid imap resource in %s on line %d