TestCase: minor tidying up

... of the inline comments in the `TestCase` file.
This commit is contained in:
jrfnl 2021-06-23 16:29:10 +02:00
parent b97983fcf6
commit afd0da8a20
1 changed files with 8 additions and 8 deletions

View File

@ -90,7 +90,7 @@ abstract class TestCase extends PolyfillTestCase
}
if (file_exists(\PHPMAILER_INCLUDE_DIR . '/test/testbootstrap.php')) {
include \PHPMAILER_INCLUDE_DIR . '/test/testbootstrap.php'; //Overrides go in here
include \PHPMAILER_INCLUDE_DIR . '/test/testbootstrap.php'; // Overrides go in here.
}
// Initialize the PHPMailer class.
@ -100,7 +100,7 @@ abstract class TestCase extends PolyfillTestCase
$this->Mail = new PHPMailer();
}
$this->Mail->SMTPDebug = SMTP::DEBUG_CONNECTION; //Full debug output
$this->Mail->SMTPDebug = SMTP::DEBUG_CONNECTION; // Full debug output.
$this->Mail->Debugoutput = ['PHPMailer\Test\DebugLogTestListener', 'debugLog'];
$this->Mail->Priority = 3;
$this->Mail->Encoding = '8bit';
@ -159,7 +159,7 @@ abstract class TestCase extends PolyfillTestCase
*/
protected function tear_down()
{
//Clean global variables
// Clean test class native properties between tests.
$this->Mail = null;
$this->ChangeLog = [];
$this->NoteLog = [];
@ -172,7 +172,7 @@ abstract class TestCase extends PolyfillTestCase
{
$this->checkChanges();
//Determine line endings for message
// Determine line endings for message.
if ('text/html' === $this->Mail->ContentType || $this->Mail->AltBody !== '') {
$eol = "<br>\r\n";
$bullet_start = '<li>';
@ -200,7 +200,7 @@ abstract class TestCase extends PolyfillTestCase
$ReportBody .= 'Host: ' . $this->Mail->Host . $eol;
}
//If attachments then create an attachment list
// If attachments then create an attachment list.
$attachments = $this->Mail->getAttachments();
if (count($attachments) > 0) {
$ReportBody .= 'Attachments:' . $eol;
@ -213,7 +213,7 @@ abstract class TestCase extends PolyfillTestCase
$ReportBody .= $list_end . $eol;
}
//If there are changes then list them
// If there are changes then list them.
if (count($this->ChangeLog) > 0) {
$ReportBody .= 'Changes' . $eol;
$ReportBody .= '-------' . $eol;
@ -226,7 +226,7 @@ abstract class TestCase extends PolyfillTestCase
$ReportBody .= $list_end . $eol . $eol;
}
//If there are notes then list them
// If there are notes then list them.
if (count($this->NoteLog) > 0) {
$ReportBody .= 'Notes' . $eol;
$ReportBody .= '-----' . $eol;
@ -238,7 +238,7 @@ abstract class TestCase extends PolyfillTestCase
$ReportBody .= $list_end;
}
//Re-attach the original body
// Re-attach the original body.
$this->Mail->Body .= $eol . $ReportBody;
}