Mercurial > hg > rc1
annotate vendor/pear/mail_mime/tests/test_Bug_21098.phpt @ 45:e11491f625b0
add info action, one 7.3 -> 8.4 nit
| author | Charlie Root |
|---|---|
| date | Thu, 28 Aug 2025 10:40:29 -0400 |
| parents | 1e000243b222 |
| children |
| rev | line source |
|---|---|
| 0 | 1 --TEST-- |
| 2 Bug #21098 Handling of empty plain text parts | |
| 3 --SKIPIF-- | |
| 4 --FILE-- | |
| 5 <?php | |
| 6 include "Mail/mime.php"; | |
| 7 | |
| 8 $mime = new Mail_mime(); | |
| 9 $mime->setTxtBody(''); | |
| 10 $mime->setHTMLBody('<html></html>'); | |
| 11 | |
| 12 $headers1 = $mime->txtHeaders(); | |
| 13 $body = $mime->get(); | |
| 14 $headers2 = $mime->txtHeaders(); | |
| 15 print strpos($headers1, 'text/html') && strpos($headers2, 'text/html') ? 'OK' : 'NOT OK'; | |
| 16 --EXPECT-- | |
| 17 OK |
