NormalizeBreaksTest: add additional test case

... to ensure text without line breaks is returned unchanged.
This commit is contained in:
jrfnl 2021-06-25 19:03:08 +02:00
parent ade3b63428
commit 14d7458826
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ final class NormalizeBreaksTest extends TestCase
$baseExpected = 'hello' . PHPMailer::CRLF . 'World' . PHPMailer::CRLF . 'Again' . PHPMailer::CRLF;
return [
'Text without line breaks' => [
'input' => 'hello World!',
'expected' => 'hello World!',
],
'Unix line breaks' => [
'input' => "hello\nWorld\nAgain\n",
'expected' => $baseExpected,