From ef36a69e0ef04153476005763a7f1e087bd99a75 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 3 Oct 2022 12:21:15 -0600 Subject: [PATCH 1/2] Typofixes --- test/PHPMailer/MimeTypesTest.php | 2 +- test/PHPMailer/NormalizeBreaksTest.php | 8 ++++---- test/PHPMailer/PunyencodeAddressTest.php | 4 ++-- test/PHPMailer/QuotedStringTest.php | 2 +- test/PHPMailer/ReplyToGetSetClearTest.php | 2 +- test/PHPMailer/SetFromTest.php | 8 ++++---- test/PHPMailer/WrapTextTest.php | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/PHPMailer/MimeTypesTest.php b/test/PHPMailer/MimeTypesTest.php index 8a8d794b..389ed6f0 100644 --- a/test/PHPMailer/MimeTypesTest.php +++ b/test/PHPMailer/MimeTypesTest.php @@ -29,7 +29,7 @@ final class MimeTypesTest extends TestCase * @dataProvider dataMime_Types * * @param string $input Input text string. - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. */ public function testMime_Types($input, $expected) { diff --git a/test/PHPMailer/NormalizeBreaksTest.php b/test/PHPMailer/NormalizeBreaksTest.php index d3e1f955..07b17df6 100644 --- a/test/PHPMailer/NormalizeBreaksTest.php +++ b/test/PHPMailer/NormalizeBreaksTest.php @@ -30,7 +30,7 @@ final class NormalizeBreaksTest extends TestCase * @dataProvider dataNormalizeBreaks * * @param string $input Input text string. - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. * @param string $breaktype Optional. What kind of line break to use. */ public function testNormalizeBreaks($input, $expected, $breaktype = null) @@ -46,8 +46,8 @@ final class NormalizeBreaksTest extends TestCase */ public function dataNormalizeBreaks() { - $LE = PHPMailer::getLE(); - $baseExpected = 'hello' . PHPMailer::CRLF . 'World' . PHPMailer::CRLF . 'Again' . PHPMailer::CRLF; + $LE = PHPMailer::getLE(); + $baseExpected = 'hello'.PHPMailer::CRLF.'World'.PHPMailer::CRLF.'Again'.PHPMailer::CRLF; return [ 'Text without line breaks' => [ @@ -93,7 +93,7 @@ final class NormalizeBreaksTest extends TestCase */ public function testNormalizeBreaksWithCustomLineEnding() { - $input = "hello\rWorld\rAgain\r"; + $input = "hello\rWorld\rAgain\r"; $expected = "hello\n\rWorld\n\rAgain\n\r"; $origLE = PHPMailer::getLE(); diff --git a/test/PHPMailer/PunyencodeAddressTest.php b/test/PHPMailer/PunyencodeAddressTest.php index d45c8e25..daa10ca7 100644 --- a/test/PHPMailer/PunyencodeAddressTest.php +++ b/test/PHPMailer/PunyencodeAddressTest.php @@ -33,7 +33,7 @@ final class PunyencodeAddressTest extends TestCase * * @param string $input Input text string. * @param string $charset The character set. - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. */ public function testPunyencodeAddressConversion($input, $charset, $expected) { @@ -87,7 +87,7 @@ final class PunyencodeAddressTest extends TestCase * * @param string $input Input text string. * @param string $charset The character set. - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. */ public function testPunyencodeAddressNoConversion($input, $charset, $expected) { diff --git a/test/PHPMailer/QuotedStringTest.php b/test/PHPMailer/QuotedStringTest.php index 7a6d0ba5..52ad3376 100644 --- a/test/PHPMailer/QuotedStringTest.php +++ b/test/PHPMailer/QuotedStringTest.php @@ -29,7 +29,7 @@ final class QuotedStringTest extends TestCase * @dataProvider dataQuotedString * * @param string $input Input text string. - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. */ public function testQuotedString($input, $expected) { diff --git a/test/PHPMailer/ReplyToGetSetClearTest.php b/test/PHPMailer/ReplyToGetSetClearTest.php index 4a067203..c690bff5 100644 --- a/test/PHPMailer/ReplyToGetSetClearTest.php +++ b/test/PHPMailer/ReplyToGetSetClearTest.php @@ -400,7 +400,7 @@ final class ReplyToGetSetClearTest extends PreSendTestCase } /** - * Test unsuccesfully adding an Reply-to address when an email address containing + * Test unsuccessfully adding an Reply-to address when an email address containing * an 8bit character is passed and either the MbString or the Intl extension are * not available. * diff --git a/test/PHPMailer/SetFromTest.php b/test/PHPMailer/SetFromTest.php index 41800e7e..12d4ba1c 100644 --- a/test/PHPMailer/SetFromTest.php +++ b/test/PHPMailer/SetFromTest.php @@ -25,11 +25,11 @@ use PHPMailer\Test\TestCase; final class SetFromTest extends TestCase { /** - * Test succesfully setting the From, FromName and Sender properties. + * Test successfully setting the From, FromName and Sender properties. * * @dataProvider dataSetFromSuccess * - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. * @param string $address Email address input to pass to the function. * @param string $name Optional. Name input to pass to the function. */ @@ -126,7 +126,7 @@ final class SetFromTest extends TestCase } /** - * Test unsuccesfully setting the From, FromName and Sender properties. + * Test unsuccessfully setting the From, FromName and Sender properties. * * @dataProvider dataSetFromFail * @@ -187,7 +187,7 @@ final class SetFromTest extends TestCase } /** - * Test unsuccesfully setting the From, FromName and Sender properties when an email address + * 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. */ diff --git a/test/PHPMailer/WrapTextTest.php b/test/PHPMailer/WrapTextTest.php index 43bd0dfe..aba35187 100644 --- a/test/PHPMailer/WrapTextTest.php +++ b/test/PHPMailer/WrapTextTest.php @@ -29,7 +29,7 @@ final class WrapTextTest extends TestCase * @dataProvider dataWrapText * * @param string $message Input text string. - * @param string $expected Expected funtion output. + * @param string $expected Expected function output. * @param bool $qp_mode Optional. Whether to run in Quoted-Printable mode. Defaults to `false`. * @param int $length Optional. Length to wrap at. Defaults to `50`. */ From b894719a4cd39981f43f6dfa3d5f5b72045316e4 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 3 Oct 2022 12:23:05 -0600 Subject: [PATCH 2/2] Fixing auto-formatting --- test/PHPMailer/NormalizeBreaksTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/PHPMailer/NormalizeBreaksTest.php b/test/PHPMailer/NormalizeBreaksTest.php index 07b17df6..b3ddbe2d 100644 --- a/test/PHPMailer/NormalizeBreaksTest.php +++ b/test/PHPMailer/NormalizeBreaksTest.php @@ -46,8 +46,8 @@ final class NormalizeBreaksTest extends TestCase */ public function dataNormalizeBreaks() { - $LE = PHPMailer::getLE(); - $baseExpected = 'hello'.PHPMailer::CRLF.'World'.PHPMailer::CRLF.'Again'.PHPMailer::CRLF; + $LE = PHPMailer::getLE(); + $baseExpected = 'hello' . PHPMailer::CRLF . 'World' . PHPMailer::CRLF . 'Again' . PHPMailer::CRLF; return [ 'Text without line breaks' => [ @@ -93,7 +93,7 @@ final class NormalizeBreaksTest extends TestCase */ public function testNormalizeBreaksWithCustomLineEnding() { - $input = "hello\rWorld\rAgain\r"; + $input = "hello\rWorld\rAgain\r"; $expected = "hello\n\rWorld\n\rAgain\n\r"; $origLE = PHPMailer::getLE();