From afd0da8a202d0ed0eb205a742d6c4ed31efac186 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 23 Jun 2021 16:29:10 +0200 Subject: [PATCH] TestCase: minor tidying up ... of the inline comments in the `TestCase` file. --- test/TestCase.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/TestCase.php b/test/TestCase.php index 92789fb6..62786179 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -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 = "
\r\n"; $bullet_start = '
  • '; @@ -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; }