1--TEST--
2imap_headerinfo() incorrect parameter count
3--CREDITS--
4Olivier Doucet
5--SKIPIF--
6<?php
7require_once(dirname(__FILE__).'/skipif.inc');
8?>
9--FILE--
10<?php
11echo "Checking with no parameters\n";
12imap_headerinfo();
13
14echo  "Checking with incorrect parameter type\n";
15imap_headerinfo('');
16imap_headerinfo(false);
17
18require_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
22imap_headerinfo($stream_id);
23
24imap_close($stream_id);
25?>
26--EXPECTF--
27Checking with no parameters
28
29Warning: imap_headerinfo() expects at least 2 parameters, 0 given in %s on line %d
30Checking with incorrect parameter type
31
32Warning: imap_headerinfo() expects at least 2 parameters, 1 given in %s on line %d
33
34Warning: imap_headerinfo() expects at least 2 parameters, 1 given in %s on line %d
35
36Warning: imap_headerinfo() expects at least 2 parameters, 1 given in %s on line %d
37