/** * Tests this denial of service attack: * @link https://sourceforge.net/p/phpmailer/bugs/383/ * According to the ticket, this should get stuck in a loop, though I can't make it happen. */ public function testDenialOfServiceAttack2() { //Encoding name longer than 68 chars $this->Mail->Encoding = '1234567890123456789012345678901234567890123456789012345678901234567890'; //Call wrapText with a zero length value $this->Mail->wrapText(str_repeat('This should no longer cause a denial of service. ', 30), 0); }