From 1e267b66a6f5ae87fde2fd900f0bedd4352fd5df Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Tue, 14 Feb 2017 13:46:50 +0100 Subject: [PATCH] Avoid possibility of line length being too short to trigger test if LE is 1 char --- test/phpmailerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpmailerTest.php b/test/phpmailerTest.php index 05a674a9..af501122 100644 --- a/test/phpmailerTest.php +++ b/test/phpmailerTest.php @@ -1313,7 +1313,7 @@ EOT; public function testLongBody() { $oklen = str_repeat(str_repeat('0', PHPMailer::MAX_LINE_LENGTH) . PHPMailer::getLE(), 2); - $badlen = str_repeat(str_repeat('1', PHPMailer::MAX_LINE_LENGTH + 1) . PHPMailer::getLE(), 2); + $badlen = str_repeat(str_repeat('1', PHPMailer::MAX_LINE_LENGTH + 2) . PHPMailer::getLE(), 2); $this->Mail->Body = "This message contains lines that are too long.". PHPMailer::getLE() . $oklen . $badlen . $oklen;