Mercurial > hg > rc1
comparison vendor/pear/mail_mime/tests/test_Bug_14780.phpt @ 0:1e000243b222
vanilla 1.3.3 distro, I hope
author | Charlie Root |
---|---|
date | Thu, 04 Jan 2018 15:50:29 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1e000243b222 |
---|---|
1 --TEST-- | |
2 Bug #14780 Invalid Content-Type when headers() is called before get() | |
3 --SKIPIF-- | |
4 --FILE-- | |
5 <?php | |
6 include("Mail/mime.php"); | |
7 | |
8 $mime = new Mail_mime(); | |
9 $mime->setTXTBody("test"); | |
10 $mime->setHTMLBody("test"); | |
11 | |
12 $head1 = $mime->headers(); | |
13 $body = $mime->get(); | |
14 $head2 = $mime->headers(); | |
15 | |
16 if ($head1 === $head2) { | |
17 echo "OK"; | |
18 } | |
19 | |
20 ?> | |
21 --EXPECT-- | |
22 OK |