diff options
author | Wez Furlong <wez@php.net> | 2002-03-27 14:07:48 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-27 14:07:48 +0000 |
commit | f870804c452c87719169eaaf49f50c8eb4acd3d2 (patch) | |
tree | cc3f008e0fbeb250fac9fb3835b684faf7fbbdeb | |
parent | 16fed222f6bfbfcb911f5c5289d5f1db1b411b85 (diff) | |
download | php-git-f870804c452c87719169eaaf49f50c8eb4acd3d2.tar.gz |
add test case for multiple To: lines
-rw-r--r-- | ext/mailparse/tests/003.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/mailparse/tests/003.phpt b/ext/mailparse/tests/003.phpt new file mode 100644 index 0000000000..4ca9e16631 --- /dev/null +++ b/ext/mailparse/tests/003.phpt @@ -0,0 +1,22 @@ +--TEST-- +Check handling of multiple To headers +--SKIPIF-- +<?php if (!extension_loaded("mailparse")) print "skip"; ?> +--POST-- +--GET-- +--FILE-- +<?php +$text = <<<EOD +To: fred@bloggs.com +To: wez@thebrainroom.com + +hello, this is some text=hello. +EOD; + +$mime = mailparse_msg_create(); +mailparse_msg_parse($mime, $text); +$data = mailparse_msg_get_part_data($mime); +echo $data["headers"]["to"]; +?> +--EXPECT-- +fred@bloggs.com, wez@thebrainroom.com |