D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
php55
/
usr
/
share
/
pear
/
test
/
Mail_Mime
/
tests
/
Filename :
test_Bug_14780.phpt
back
Copy
--TEST-- Bug #14780 Invalid Content-Type when headers() is called before get() --SKIPIF-- --FILE-- <?php include("Mail/mime.php"); $mime = new Mail_mime(); $mime->setTXTBody("test"); $mime->setHTMLBody("test"); $head1 = $mime->headers(); $body = $mime->get(); $head2 = $mime->headers(); if ($head1 === $head2) { echo "OK"; } ?> --EXPECT-- OK