Permalink
Browse files

* Request #19009: Remove error_reporting from tests

git-svn-id: http://svn.php.net/repository/pear/packages/Mail_Mime/trunk@319230 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 8238123 commit 1dc10eefcd1b0eacd5848345d7fcdf3e90e2dd7b Aleksander Machniak committed Nov 15, 2011
View
@@ -29,10 +29,9 @@ using RFC2047 and/or RFC2231.</description>
<email>alec@php.net</email>
<active>yes</active>
</lead>
-
- <date>2011-08-10</date>
+ <date></date>
<version>
- <release>1.8.2</release>
+ <release></release>
<api>1.4.1</api>
</version>
<stability>
@@ -41,10 +40,7 @@ using RFC2047 and/or RFC2231.</description>
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD Style</license>
<notes>
-Bugs Fixed:
- * #18426: Fixed backward compatibility for "dfilename" parameter [alec]
- * Removed xmail.dtd, xmail.xsl from the package [alec]
- * Fixed handling of email addresses with quoted local part [alec]
+ * Request #19009: Remove error_reporting from tests [alec]
</notes>
<contents>
<dir name="/">
@@ -602,5 +598,23 @@ Bugs Fixed:
* #18083: Not possible to set separate charset for attachment content and headers [alec]
</notes>
</release>
+ <release>
+ <date>2011-08-10</date>
+ <version>
+ <release>1.8.2</release>
+ <api>1.4.1</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD Style</license>
+ <notes>
+Bugs Fixed:
+ * #18426: Fixed backward compatibility for "dfilename" parameter [alec]
+ * Removed xmail.dtd, xmail.xsl from the package [alec]
+ * Fixed handling of email addresses with quoted local part [alec]
+ </notes>
+ </release>
</changelog>
</package>
View
@@ -5,4 +5,4 @@ clean:
test:
- cd .. && pear run-tests tests/*.phpt && cd tests;
+ cd .. && pear run-tests -i "-d error_reporting=22527" tests/*.phpt && cd tests;
@@ -3,7 +3,6 @@ Bug #2364 Tabs in _quotedPrintableEncode()
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
$test = "Here's\t\na tab\n";
require_once('Mail/mimePart.php');
$part = new Mail_mimePart();
@@ -8,7 +8,6 @@ if (!function_exists('mb_substr') || !function_exists('mb_strlen')) {
?>
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$mime = new Mail_mime();
@@ -8,7 +8,6 @@ if (function_exists('mb_substr') && function_exists('mb_strlen')) {
?>
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$mime = new Mail_mime();
@@ -3,8 +3,6 @@ Tests for _parseHeaderValue
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // suppress E_STRICT errors
-
require_once 'Mail/mime.php';
$Mime = new Mail_Mime();
@@ -3,8 +3,6 @@ Bug #1724 Quoted Semicolons in Content-Type
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // suppress E_STRICT errors
-
require_once('Mail/mime.php');
$Mime = new Mail_Mime();
@@ -37,4 +35,4 @@ echo $test_param;
?>
--EXPECT--
-test1;semicolon
+test1;semicolon
@@ -3,7 +3,6 @@ Bug #10596 Incorrect handling of text and html '0' bodies
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$mime = new Mail_mime();
$mime->setTxtBody('0');
@@ -3,7 +3,6 @@ Bug #10816 Unwanted linebreak at the end of output
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
$eol = "#";
include("Mail/mime.php");
$encoder = new Mail_mime(array('eol'=>$eol));
@@ -3,7 +3,6 @@ Bug #10999 Bad Content-ID(cid) format
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
$from='user@from.example.com';
require_once('Mail/mime.php');
@@ -3,7 +3,6 @@ Bug #11381 Domain name is attached to content-id, trailing greater-than sign is
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
$from='Test User <user@from.example.com>';
require_once('Mail/mime.php');
@@ -3,7 +3,6 @@ Bug #11731 Full stops after soft line breaks are not encoded
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
// Second full stop will be at the start of the second line after quoted-printable
// encoding (full stop '=2E' + 72 characters + line-continuation '=' = 76)
@@ -3,7 +3,6 @@ Bug #12165 Dot at the end of the line disappeared
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include ("Mail/mime.php");
$string='http://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com';
$mime = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #12385 Bad regex when replacing css style attachments
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
$from='user@from.example.com';
require_once('Mail/mime.php');
@@ -3,7 +3,6 @@ Bug #12411 RFC2047 encoded attachment filenames
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include "Mail/mime.php";
$m = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #12466 Content-Transfer-Encoding checking
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$params = array(
@@ -3,7 +3,6 @@ Bug #13032 Proper (different) boundary for nested parts
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include "Mail/mime.php";
$mime = new Mail_mime("\r\n");
$mime->setHTMLBody('html');
@@ -19,4 +18,4 @@ if (preg_match_all('/boundary="([^"]+)"/', $msg, $matches)) {
}
?>
--EXPECT--
-OK
+OK
@@ -3,7 +3,6 @@ Bug #9725 multipart/related & alternative wrong order
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$mime = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #13962 Multiple header support
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
require_once('Mail/mime.php');
$mime = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #14529 basename() workaround
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include "Mail/mime.php";
$m = new Mail_mime();
// some text with polish Unicode letter at the beginning
@@ -3,7 +3,6 @@ Bug #14779 Proper header-body separator for empty attachment
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include "Mail/mime.php";
$m = new Mail_mime();
@@ -23,4 +22,4 @@ Content-Disposition: attachment;
filename=file.txt
-END
+END
@@ -3,7 +3,6 @@ Bug #14780 Invalid Content-Type when headers() is called before get()
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$mime = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #15320 Charset parameter in Content-Type of mail parts
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include "Mail/mime.php";
$m = new Mail_mime();
$m->addAttachment('testfile', "text/plain", 'file.txt', FALSE, 'base64', 'attachment', 'ISO-8859-1');
@@ -3,7 +3,6 @@ Bug #16539 Headers longer than 998 characters
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$mime = new Mail_mime();
@@ -49,4 +48,4 @@ jskibbie@schawk.com, jskibbie@schawk.com, jskibbie@schawk.com,
jskibbie@schawk.com, jskibbie@schawk.com, jskibbie@schawk.com,
jskibbie@schawk.com, jskibbie@schawk.com
jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.co
- m,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com
+ m,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com,jskibbie@schawk.com
@@ -3,7 +3,6 @@ Bug #16539 Headers longer than 998 characters
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$headers['From'] = 'aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh';
@@ -13,4 +12,4 @@ $hdrs = $mime->headers($headers);
print_r($hdrs['From']);
?>
--EXPECT--
-aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh
+aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh
@@ -3,8 +3,6 @@ Bug #17175 Content-Description support+ecoding
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // suppress E_STRICT errors
-
require_once('Mail/mime.php');
$Mime = new Mail_Mime();
@@ -3,7 +3,6 @@ Bug #18083 Separate charset for attachment's content and headers
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include "Mail/mime.php";
$m = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #3513 Support of RFC2231 in header fields. (ISO-8859-1)
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL);
$test = "Fóóbær.txt";
require_once('Mail/mime.php');
$Mime=new Mail_Mime();
@@ -3,7 +3,6 @@ Bug #3513 Support of RFC2231 in header fields. (UTF-8)
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL);
$test = "Süper gröse tolle tolle grüße.txt";
require_once('Mail/mime.php');
$Mime=new Mail_Mime();
@@ -3,7 +3,6 @@ Bug #3513 Support of RFC2231 in header fields. (ISO-2022-JP)
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL);
mb_internal_encoding('ISO-2022-JP');
$testEncoded="GyRCRnxLXDhsGyhCLnR4dA==";
$test = base64_decode($testEncoded); // Japanese filename in ISO-2022-JP charset.
@@ -10,7 +10,6 @@ if (!extension_loaded('mbstring')){
}
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
ini_set('mbstring.language', 'Neutral');
// this isn't working because this option has PHP_INI_SYSTEM mode
ini_set('mbstring.func_overload', 6);
@@ -3,7 +3,6 @@ Bug #8386 HTML body not correctly encoded if attachments present
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
$eol = "\n#";
include("Mail/mime.php");
$encoder = new Mail_mime(array('eol'=>$eol));
@@ -3,7 +3,6 @@ Bug #8541 mimePart.php line delimiter is \r
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL);
$mime = file_get_contents('Mail/mime.php', 1);
$mimePart = file_get_contents('Mail/mimePart.php', 1);
if (strpos($mime, "\r")){
@@ -3,7 +3,6 @@ Bug #9558 Broken multiline headers
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mime.php");
$encoder = new Mail_mime();
@@ -3,7 +3,6 @@ Bug #9722 _quotedPrintableEncode does not encode dot at start of line on Windo
--SKIPIF--
--FILE--
<?php
-error_reporting(E_ALL); // ignore E_STRICT
include("Mail/mimePart.php");
$part = new Mail_mimePart('', array('eol'=>"\n"));
$text = "This

0 comments on commit 1dc10ee

Please sign in to comment.