Typofixes

This commit is contained in:
JT Smith 2022-10-03 12:21:15 -06:00
parent df88e14dba
commit ef36a69e0e
7 changed files with 14 additions and 14 deletions

View File

@ -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)
{

View File

@ -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();

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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.
*

View File

@ -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.
*/

View File

@ -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`.
*/