From 6028776a639ac7cc05a48e36d0f64163c8c30204 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 12 Sep 2024 09:11:34 +0200 Subject: [PATCH] PHPMailerTest::testGivenIdnAddress...(): set test requirements As per the discussion in 3092, this commit removes the `fakefunctions.php` file and adds explicit requirements for the `PHPMailerTest::testGivenIdnAddress_addAddress_returns_true()` test method. Closes 3092 --- test/PHPMailer/PHPMailerTest.php | 9 ++++----- test/fakefunctions.php | 15 --------------- 2 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 test/fakefunctions.php diff --git a/test/PHPMailer/PHPMailerTest.php b/test/PHPMailer/PHPMailerTest.php index 0b82fe12..497476a5 100644 --- a/test/PHPMailer/PHPMailerTest.php +++ b/test/PHPMailer/PHPMailerTest.php @@ -1258,13 +1258,12 @@ EOT; $this->Mail->smtpClose(); } + /** + * @requires extension mbstring + * @requires function idn_to_ascii + */ public function testGivenIdnAddress_addAddress_returns_true() { - if (file_exists(\PHPMAILER_INCLUDE_DIR . '/test/fakefunctions.php') === false) { - $this->markTestSkipped('/test/fakefunctions.php file not found'); - } - - include \PHPMAILER_INCLUDE_DIR . '/test/fakefunctions.php'; $this->assertTrue($this->Mail->addAddress('test@françois.ch')); } diff --git a/test/fakefunctions.php b/test/fakefunctions.php deleted file mode 100644 index 134da600..00000000 --- a/test/fakefunctions.php +++ /dev/null @@ -1,15 +0,0 @@ -