public function testQP() { $text = "This is a cool Test Text with special chars: ����\n" . "and with multiple lines���� some of the Lines are long, long" . ", long, long, long, long, long, long, long, long, long, long" . ", long, long, long, long, long, long, long, long, long, long" . ", long, long, long, long, long, long, long, long, long, long" . ", long, long, long, long and with ����"; $qp = Mime\Mime::encodeQuotedPrintable($text); $this->assertEquals(quoted_printable_decode($qp), $text); }
public function testZf1058WhitespaceAtEndOfBodyCausesInfiniteLoop() { $text = "my body\r\n\r\n...after two newlines\r\n "; $result = quoted_printable_decode(Mime\Mime::encodeQuotedPrintable($text)); $this->assertContains("my body\r\n\r\n...after two newlines", $result, $result); }