xref: /PHP-5.5/ext/imap/tests/imap_headers.phpt (revision 1bcc3aac)
1--TEST--
2imap_headers() incorrect parameter count
3--CREDITS--
4Paul Sohier
5#phptestfest utrecht
6--SKIPIF--
7<?php
8require_once(dirname(__FILE__).'/skipif.inc');
9?>
10--FILE--
11<?php
12echo "Checking with no parameters\n";
13imap_headers();
14
15echo  "Checking with incorrect parameter type\n";
16imap_headers('');
17imap_headers(false);
18?>
19--EXPECTF--
20Checking with no parameters
21
22Warning: imap_headers() expects exactly 1 parameter, 0 given in %s on line %d
23Checking with incorrect parameter type
24
25Warning: imap_headers() expects parameter 1 to be resource, %unicode_string_optional% given in %s on line %d
26
27Warning: imap_headers() expects parameter 1 to be resource, boolean given in %s on line %d
28
29