Skip to content

Commit

Permalink
Update test to expect Headers::FOLDING never change
Browse files Browse the repository at this point in the history
Signed-off-by: Elan Ruusamäe <[email protected]>
  • Loading branch information
glensc committed Mar 5, 2021
1 parent d15a2e5 commit e2aa574
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Transport/SmtpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ public function testReceivesMailArtifacts(): void
*/
public function testLongLinesFoldingRFC5322(): void
{
$message = 'The folding logic expects exactly 1 byte after \r\n in folding';
$this->assertEquals("\r\n ", Headers::FOLDING, $message);

$message = $this->getMessage();
// Create buffer of 8192 bytes (PHP_SOCK_CHUNK_SIZE)
$buffer = str_repeat('0123456789abcdef', 512);
Expand Down

0 comments on commit e2aa574

Please sign in to comment.