Skip this test when UTF-8 isn't usable
This commit is contained in:
parent
c5dae41b32
commit
80b6275ebc
|
|
@ -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()
|
public function testAutomaticEaiValidation()
|
||||||
{
|
{
|
||||||
|
|
@ -1241,6 +1241,11 @@ EOT;
|
||||||
$this->Mail->preSend();
|
$this->Mail->preSend();
|
||||||
self::assertFalse($this->Mail->needsSMTPUTF8());
|
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
|
//Using a punycodable domain does not need SMTPUTF8
|
||||||
self::assertFalse($this->Mail->needsSMTPUTF8());
|
self::assertFalse($this->Mail->needsSMTPUTF8());
|
||||||
$this->Mail->addAddress('foo@spın̈altap.example', '');
|
$this->Mail->addAddress('foo@spın̈altap.example', '');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue