コード例 #1
0
ファイル: MimeTest.php プロジェクト: niallmccrudden/zf2
    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);
    }
コード例 #2
0
ファイル: MimeTest.php プロジェクト: rajanlamic/IntTest
 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);
 }