Permalink
Browse files

Fix some of the tests to actually test the right classes

  • Loading branch information...
CloCkWeRX committed Dec 9, 2011
1 parent bfcab1a commit e1654fd7a58e9d37e45425e79d1703a77ba6536f
@@ -6,8 +6,8 @@ echo "skip This will be broken until Mail_Mime2";
?>
--FILE--
<?php
-@include('Mail/Mime.php');
-echo class_exists('Mail_Mime') ? 'Include OK' : 'Include failed';
+require_once 'Mail/Mime2.php';
+echo class_exists('Mail_Mime2') ? 'Include OK' : 'Include failed';
?>
--EXPECT--
Include OK
View
@@ -4,8 +4,8 @@ Bug #2364 Tabs in _quotedPrintableEncode()
--FILE--
<?php
$test = "Here's\t\na tab\n";
-require_once('Mail/mimePart.php');
-$part = new Mail_mimePart();
+require_once 'Mail/MimePart2.php';
+$part = new Mail_MimePart2();
print $part->_quotedPrintableEncode($test, 7);
?>
--EXPECT--
@@ -5,9 +5,9 @@ Bug #11381 Domain name is attached to content-id, trailing greater-than sign is
<?php
$from='Test User <user@from.example.com>';
-require_once('Mail/mime.php');
+require_once 'Mail/Mime2.php';
-$mime=new Mail_mime();
+$mime=new Mail_Mime2();
$body='<img src="test.gif"/>';
@@ -3,8 +3,8 @@ Bug #12411 RFC2047 encoded attachment filenames
--SKIPIF--
--FILE--
<?php
-include "Mail/mime.php";
-$m = new Mail_mime();
+include "Mail/Mime2.php";
+$m = new Mail_Mime2();
// some text with polish Unicode letter at the beginning
$path = "/path/";
@@ -16,8 +16,8 @@ ini_set('mbstring.func_overload', 6);
ini_set('mbstring.internal_encoding', 'UTF-8');
ini_set('mbstring.http_output', 'UTF-8');
-include("Mail/mimePart.php");
-$part = new Mail_mimePart('', array('eol'=>"\n"));
+require_once "Mail/MimePart2.php";
+$part = new Mail_MimePart2('', array('eol'=>"\n"));
// string is UTF-8 encoded
$input = "Micha\xC3\xABl \xC3\x89ric St\xC3\xA9phane";
$rv = $part->_quotedPrintableEncode($input);
@@ -3,8 +3,8 @@ Bug #9722 _quotedPrintableEncode does not encode dot at start of line on Windo
--SKIPIF--
--FILE--
<?php
-include("Mail/mimePart.php");
-$part = new Mail_mimePart('', array('eol'=>"\n"));
+require_once "Mail/MimePart2.php.";
+$part = new Mail_MimePart2('', array('eol'=>"\n"));
$text = "This
is a
test

0 comments on commit e1654fd

Please sign in to comment.