Skip to content

Commit

Permalink
Tests: e107EmailTest::testMsgHTML(): Enforce SMTP-style line endings
Browse files Browse the repository at this point in the history
On older PHP versions, the line ending seems to be indeterminate?

Changing the test mailer from "mail" to "smtp" should enforce CRLF
line endings instead of maybe CRLF, maybe LF.
  • Loading branch information
Deltik committed Dec 29, 2022
1 parent 43792c4 commit 12486d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e107_tests/tests/unit/e107EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function _before()


$this->eml->__construct();

$this->eml->Mailer = "smtp";
}

/*
Expand Down Expand Up @@ -156,7 +156,6 @@ public function testMsgHTML()
<td>Github:</td><td>https://github.com/e107inc/</td></tr>
</table>";


$this->eml->MsgHTML($html);

$result = json_encode($this->eml->AltBody);
Expand Down

0 comments on commit 12486d1

Please sign in to comment.