Avoid possibility of line length being too short to trigger test if LE is 1 char

This commit is contained in:
Marcus Bointon 2017-02-14 13:46:50 +01:00
parent ec5661e699
commit 1e267b66a6
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 1 additions and 1 deletions

View File

@ -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;