Mercurial > hg > rc1
annotate vendor/pear/mail_mime/tests/test_Bug_20563.phpt @ 35:05c4c32948af
.hgignore: add vendor tree
composer.json: new packages
plugins/thunderbird_labels/thunderbird_labels.php: change hook and RFC822 use wrt whitelisting to avoid deprecated stuff
index.php: commented debugging hooks
others: new releases of vendor packages?
| author | Charlie Root |
|---|---|
| date | Thu, 30 Aug 2018 16:21:59 -0400 |
| parents | 1e000243b222 |
| children |
| rev | line source |
|---|---|
| 0 | 1 --TEST-- |
| 2 Bug #20563 isMultipart() method tests | |
| 3 --SKIPIF-- | |
| 4 --FILE-- | |
| 5 <?php | |
| 6 include("Mail/mime.php"); | |
| 7 | |
| 8 $mime = new Mail_mime; | |
| 9 | |
| 10 echo ($mime->isMultipart() ? 'TRUE' : 'FALSE') . "\n"; | |
| 11 | |
| 12 $mime->setTXTBody('test'); | |
| 13 | |
| 14 echo ($mime->isMultipart() ? 'TRUE' : 'FALSE') . "\n"; | |
| 15 | |
| 16 $mime->setHTMLBody('test'); | |
| 17 | |
| 18 echo ($mime->isMultipart() ? 'TRUE' : 'FALSE') . "\n"; | |
| 19 | |
| 20 --EXPECT-- | |
| 21 FALSE | |
| 22 FALSE | |
| 23 TRUE |
