mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-19 17:42:14 +02:00
Merge pull request #3094 from jrfnl/feature/testGivenIdnAddress-set-requirements
PHPMailerTest::testGivenIdnAddress...(): set test requirements
This commit is contained in:
commit
81599d1554
@ -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'));
|
||||
}
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!function_exists('idn_to_ascii')) {
|
||||
function idn_to_ascii()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user