From 1db5c74f7650ee17bd81e8a3107453e1956d9767 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Wed, 9 Apr 2025 14:35:24 +0200 Subject: [PATCH] Use existing function to check for test config --- test/PHPMailer/ReplyToGetSetClearTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/PHPMailer/ReplyToGetSetClearTest.php b/test/PHPMailer/ReplyToGetSetClearTest.php index 53df763e..97212b89 100644 --- a/test/PHPMailer/ReplyToGetSetClearTest.php +++ b/test/PHPMailer/ReplyToGetSetClearTest.php @@ -408,7 +408,7 @@ final class ReplyToGetSetClearTest extends PreSendTestCase */ public function testAddReplyToFailsOn8BitCharInDomainWithoutOptionalExtensions() { - if (extension_loaded('mbstring') && function_exists('idn_to_ascii')) { + if (PHPMailer::idnSupported()) { $this->markTestSkipped('Test requires MbString and/or Intl *not* to be available'); }