From bfd4c3db1a7fdeb20b0343e676bf5a2c2b5202ee Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Wed, 16 Oct 2024 18:53:36 +0200 Subject: [PATCH] Choose a validator that should fail --- test/PHPMailer/PHPMailerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/PHPMailer/PHPMailerTest.php b/test/PHPMailer/PHPMailerTest.php index 663d551e..83af9aef 100644 --- a/test/PHPMailer/PHPMailerTest.php +++ b/test/PHPMailer/PHPMailerTest.php @@ -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', '')); }