public function testFormatAddress() { $this->assertSame("<*****@*****.**>", \r8\Mail\Formatter::formatAddress("*****@*****.**")); $this->assertSame('"Lug MightyChunk" <*****@*****.**>', \r8\Mail\Formatter::formatAddress("*****@*****.**", "Lug MightyChunk")); $this->assertSame('<*****@*****.**>', \r8\Mail\Formatter::formatAddress("*****@*****.**", chr(5))); $this->assertSame('"Lug \\"MightyChunk\\"" <*****@*****.**>', \r8\Mail\Formatter::formatAddress("*****@*****.**", 'Lug "MightyChunk"')); }