public function testTo_Customized() { $mime = new \r8\Transform\MIME\Auto(); $mime->setLineLength(30); $mime->setHeader("name"); $mime->setOutputEncoding("UTF-8"); $mime->setInputEncoding("UTF-8"); $mime->setEOL("---"); $this->assertSame("name: A sample string that---\twraps to a new line", $mime->to("A sample string that wraps to a new line")); $this->assertSame("name: =?UTF-8?Q?A=09sample=09?=---\t=?UTF-8?Q?string_that_wraps?=", $mime->to("A\tsample\tstring that wraps")); $this->assertSame("name: =?UTF-8?B?CUEJc3RyaW5n?=---\t=?UTF-8?B?CQ==?=", $mime->to("\tA\tstring\t")); }