This commit is contained in:
Manuel Camargo 2025-08-24 15:24:13 +02:00 committed by GitHub
commit 3375ac6fc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 27 additions and 0 deletions

View File

@ -278,6 +278,9 @@ EOT;
/**
* Send a message containing ISO-8859-1 text.
*
* @requires extension mbstring
* @group mbstringExtRequired
*/
public function testHtmlIso8859()
{
@ -1117,6 +1120,8 @@ EOT;
/**
* Tests CharSet and Unicode -> ASCII conversions for addresses with IDN.
*
* @group mbstringExtRequired
*/
public function testConvertEncoding()
{
@ -1162,6 +1167,8 @@ EOT;
/**
* Tests removal of duplicate recipients and reply-tos.
*
* @group mbstringExtRequired
*/
public function testDuplicateIDNRemoved()
{
@ -1230,6 +1237,8 @@ EOT;
/**
* Test SMTPUTF8 usage, including when it is not to be used.
*
* @group mbstringExtRequired
*/
public function testSmtpUTF8()
{
@ -1346,6 +1355,8 @@ EOT;
/**
* @requires extension mbstring
* @requires function idn_to_ascii
*
* @group mbstringExtRequired
*/
public function testGivenIdnAddress_addAddress_returns_true()
{

View File

@ -33,6 +33,7 @@ final class ParseAddressesTest extends TestCase
* with the Mbstring extension available.
*
* @requires extension mbstring
* @group mbstringExtRequired
*
* @dataProvider dataAddressSplitting
*
@ -64,6 +65,7 @@ final class ParseAddressesTest extends TestCase
*
* @requires extension imap
* @requires extension mbstring
* @group mbstringExtRequired
*
* @dataProvider dataAddressSplitting
*
@ -93,6 +95,7 @@ final class ParseAddressesTest extends TestCase
* Test RFC822 address splitting using the PHPMailer native implementation
* without the Mbstring extension.
*
* @group mbstringExtDisabled
* @dataProvider dataAddressSplitting
*
* @param string $addrstr The address list string.
@ -127,6 +130,7 @@ final class ParseAddressesTest extends TestCase
*
* @requires extension imap
*
* @group mbstringExtDisabled
* @dataProvider dataAddressSplitting
*
* @param string $addrstr The address list string.

View File

@ -28,6 +28,8 @@ final class PunyencodeAddressTest extends TestCase
*
* @requires extension mbstring
* @requires function idn_to_ascii
*
* @group mbstringExtRequired
*
* @dataProvider dataPunyencodeAddressConversion
*

View File

@ -270,6 +270,8 @@ final class ReplyToGetSetClearTest extends PreSendTestCase
*
* @requires extension mbstring
* @requires function idn_to_ascii
*
* @group mbstringExtRequired
*/
public function testEnqueueAndAddIdnAddress()
{
@ -308,6 +310,8 @@ final class ReplyToGetSetClearTest extends PreSendTestCase
*
* @requires extension mbstring
* @requires function idn_to_ascii
*
* @group mbstringExtRequired
*/
public function testNoDuplicateReplyToAddresses()
{
@ -404,6 +408,8 @@ final class ReplyToGetSetClearTest extends PreSendTestCase
* an 8bit character is passed and either the MbString or the Intl extension are
* not available.
*
* @group mbstringExtDisabled
*
* @covers \PHPMailer\PHPMailer\PHPMailer::addAnAddress
*/
public function testAddReplyToFailsOn8BitCharInDomainWithoutOptionalExtensions()
@ -422,6 +428,8 @@ final class ReplyToGetSetClearTest extends PreSendTestCase
*
* @requires extension mbstring
* @requires function idn_to_ascii
*
* @group mbstringExtRequired
*/
public function testClearReplyTos()
{

View File

@ -190,6 +190,8 @@ final class SetFromTest extends TestCase
* Test unsuccessfully setting the From, FromName and Sender properties when an email address
* containing an 8bit character is passed and either the MbString or the Intl extension are
* not available.
*
* @group mbstringExtDisabled
*/
public function testSetFromFailsOn8BitCharInDomainWithoutOptionalExtensions()
{