Skip this test when UTF-8 isn't usable

This commit is contained in:
Marcus Bointon 2025-04-23 21:42:01 +02:00
parent c5dae41b32
commit 80b6275ebc
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 6 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ EOT;
}
/**
* Test that SMTPUTF8 is allowed unless the caller has made a concious choice against.
* Test that SMTPUTF8 is allowed unless the caller has made a conscious choice against it.
*/
public function testAutomaticEaiValidation()
{
@ -1241,6 +1241,11 @@ EOT;
$this->Mail->preSend();
self::assertFalse($this->Mail->needsSMTPUTF8());
//Beyond this point we need UTF-8 support
if (!PHPMailer::idnSupported()) {
self::markTestSkipped('intl and/or mbstring extensions are not available');
}
//Using a punycodable domain does not need SMTPUTF8
self::assertFalse($this->Mail->needsSMTPUTF8());
$this->Mail->addAddress('foo@spın̈altap.example', '');