xref: /PHP-5.4/ext/imap/tests/imap_utf8.phpt (revision 0e636390)
1--TEST--
2imap_utf8() tests
3--SKIPIF--
4<?php if (!extension_loaded("imap")) print "skip"; ?>
5--FILE--
6<?php
7
8var_dump(imap_utf8(""));
9var_dump(imap_utf8(1));
10var_dump(imap_utf8(array(1,2)));
11var_dump(imap_utf8("test"));
12
13echo "Done\n";
14?>
15--EXPECTF--
16string(0) ""
17string(1) "1"
18
19Warning: imap_utf8() expects parameter 1 to be string, array given in %s on line %d
20NULL
21string(4) "%s"
22Done
23