Choose a validator that should fail

This commit is contained in:
Marcus Bointon 2024-10-16 18:53:36 +02:00
parent 321aeb200d
commit bfd4c3db1a
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 2 additions and 1 deletions

View File

@ -1197,7 +1197,8 @@ EOT;
*/
public function testUnsupportedSmtpUTF8()
{
$this->Mail->CharSet = PHPMailer::CHARSET_ISO88591;
$this->Mail->CharSet = PHPMailer::CHARSET_UTF8;
PHPMailer::$validator = 'html5';
self::assertFalse($this->Mail->addAddress('spın̈altap@example.com', ''));
}