Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix some of the tests to actually test the right classes

  • Loading branch information...
commit f8e68277d6ab017ac2f8fe3e5b1e8023f2d7784f 1 parent 54ca7e0
@CloCkWeRX CloCkWeRX authored
View
2  Mail/Mime2.php
@@ -532,7 +532,7 @@ function _addHtmlPart($obj)
$ret = $obj->addSubpart($this->_htmlbody, $params);
return $ret;
} else {
- $ret = new Mail_NimePart2($this->_htmlbody, $params);
+ $ret = new Mail_MimePart2($this->_htmlbody, $params);
return $ret;
}
}
View
2  tests/test_Bug_12466.phpt
@@ -9,7 +9,7 @@ $params = array(
'text_encoding' => '7bit',
'html_encoding' => '7bit',
);
-$mime = new Mail_Mime($params);
+$mime = new Mail_Mime2($params);
$mime->setTXTBody("ż");
$mime->setHTMLBody("z");
$body = $mime->getMessage();
View
2  tests/test_Bug_13444.phpt
@@ -3,7 +3,7 @@ Bug #9725 multipart/related & alternative wrong order
--SKIPIF--
--FILE--
<?php
-require_once "Mail/mime2.php";
+require_once "Mail/Mime2.php";
$mime = new Mail_Mime2();
$mime->setTXTBody("test");
View
2  tests/test_Bug_17025.phpt
@@ -3,7 +3,7 @@ Bug #16539 Headers longer than 998 characters
--SKIPIF--
--FILE--
<?php
-require_once "Mail/mime2.php";
+require_once "Mail/Mime2.php";
$headers['From'] = 'aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh';
# over than 76 chars
View
2  tests/test_Bug_3513_3.phpt
@@ -6,7 +6,7 @@ Bug #3513 Support of RFC2231 in header fields. (ISO-2022-JP)
mb_internal_encoding('ISO-2022-JP');
$testEncoded="GyRCRnxLXDhsGyhCLnR4dA==";
$test = base64_decode($testEncoded); // Japanese filename in ISO-2022-JP charset.
-require_once 'Mail/mime2.php';
+require_once 'Mail/Mime2.php';
$Mime=new Mail_Mime2();
$Mime->addAttachment('testfile',"text/plain", $test, FALSE, 'base64', 'attachment', 'iso-2022-jp', '');
$root = $Mime->_addMixedPart();
Please sign in to comment.
Something went wrong with that request. Please try again.