Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some of the tests to actually test the right classes

  • Loading branch information...
commit e1654fd7a58e9d37e45425e79d1703a77ba6536f 1 parent bfcab1a
@CloCkWeRX CloCkWeRX authored
View
4 tests/class-filename.phpt
@@ -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 tests/encoding_case.phpt
@@ -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--
View
4 tests/test_Bug_11381.phpt
@@ -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"/>';
View
4 tests/test_Bug_12411.phpt
@@ -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/";
View
4 tests/test_Bug_7561_1.phpt
@@ -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);
View
4 tests/test_Bug_9722_1.phpt
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.