/** * @test */ public function sendingPlainTextMailWithoutFormattingNotRemovesAnyCarriageReturnFromBody() { $this->subject->sendFormattedEmails(FALSE); $sender = new Tx_Oelib_Tests_Unit_Fixtures_TestingMailRole('', '*****@*****.**'); $recipient = new Tx_Oelib_Tests_Unit_Fixtures_TestingMailRole('John Doe', $this->email['recipient']); $eMail = new Tx_Oelib_Mail(); $eMail->setSender($sender); $eMail->addRecipient($recipient); $eMail->setSubject($this->email['subject']); $eMail->setMessage('one long line ...........................................' . CRLF . 'now a blank line:' . LF . LF . 'another long line .........................................' . LF . 'and a line with umlauts: Hörbär saß früh.'); $this->subject->send($eMail); self::assertContains(CR, $this->subject->getFirstSentEmail()->getBody()); }