TimeTrex/vendor/pear/mail_mime/tests/test_Bug_20563.phpt

24 lines
378 B
Plaintext
Raw Normal View History

2022-12-13 07:10:06 +01:00
--TEST--
Bug #20563 isMultipart() method tests
--SKIPIF--
--FILE--
<?php
include("Mail/mime.php");
$mime = new Mail_mime;
echo ($mime->isMultipart() ? 'TRUE' : 'FALSE') . "\n";
$mime->setTXTBody('test');
echo ($mime->isMultipart() ? 'TRUE' : 'FALSE') . "\n";
$mime->setHTMLBody('test');
echo ($mime->isMultipart() ? 'TRUE' : 'FALSE') . "\n";
--EXPECT--
FALSE
FALSE
TRUE