diff options
Diffstat (limited to 'ext/imap/tests/imap_mutf7_to_utf8.phpt')
-rw-r--r-- | ext/imap/tests/imap_mutf7_to_utf8.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/imap/tests/imap_mutf7_to_utf8.phpt b/ext/imap/tests/imap_mutf7_to_utf8.phpt new file mode 100644 index 0000000..7a1a54a --- /dev/null +++ b/ext/imap/tests/imap_mutf7_to_utf8.phpt @@ -0,0 +1,23 @@ +--TEST-- +imap_mutf7_to_utf8 +--SKIPIF-- +<?php if (!extension_loaded("imap")) print "skip"; ?> +<?php if (!function_exists("imap_mutf7_to_utf8")) print "skip"; ?> +--FILE-- +<?php + +var_dump(imap_mutf7_to_utf8("")); +var_dump(imap_mutf7_to_utf8(1)); +var_dump(imap_mutf7_to_utf8(array(1,2))); +var_dump(imap_mutf7_to_utf8("t&AOQ-st")); + +echo "Done\n"; +?> +--EXPECTF-- +string(0) "" +string(1) "1" + +Warning: imap_mutf7_to_utf8() expects parameter 1 to be string, array given in %s on line %d +NULL +string(5) "täst" +Done |