Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Feb 14, 2017
1 parent 1e267b6 commit bb5ca43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/phpmailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,7 @@ public function testEmptyBody()
public function testLongBody()
{
$oklen = str_repeat(str_repeat('0', PHPMailer::MAX_LINE_LENGTH) . PHPMailer::getLE(), 2);
//Use +2 to ensure line length is over limit - LE may only be 1 char
$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.".
Expand All @@ -1329,7 +1330,7 @@ public function testLongBody()
$message = $this->Mail->getSentMIMEMessage();
$this->assertFalse(
PHPMailer::hasLineLongerThanMax($message),
'Long line not corrected (Max: '.(PHPMailer::MAX_LINE_LENGTH + strlen(PHPMailer::getLE())). ' chars). Message:'. $message
'Long line not corrected (Max: '.(PHPMailer::MAX_LINE_LENGTH + strlen(PHPMailer::getLE())). ' chars)'
);
$this->assertContains(
'Content-Transfer-Encoding: quoted-printable',
Expand Down

0 comments on commit bb5ca43

Please sign in to comment.