From 461d35ae76b66e33df0c1614899c3c206bb9ab97 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 6 Aug 2020 19:53:43 +0700 Subject: [PATCH] Sendmail test clean up Signed-off-by: Abdul Malik Ikhsan --- test/Transport/SendmailTest.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/Transport/SendmailTest.php b/test/Transport/SendmailTest.php index 0244239e..111f8f3b 100644 --- a/test/Transport/SendmailTest.php +++ b/test/Transport/SendmailTest.php @@ -73,7 +73,7 @@ public function getMessage() return $message; } - public function isWindows() + private function isWindows() { return $this->operating_system === 'WIN'; } @@ -263,12 +263,10 @@ public function testDoNotAllowMessageWithoutToAndCcAndBccHeaders() } /** - * @see @see https://github.com/laminas/laminas-mail/issues/19 + * @see https://github.com/laminas/laminas-mail/issues/19 */ public function testHeadersToAndSubjectAreNotDuplicated() { - $lineBreak = $this->isWindows() ? "\r\n" : "\n"; - $message = new Message(); $message ->addTo('matthew@example.org') @@ -282,6 +280,6 @@ public function testHeadersToAndSubjectAreNotDuplicated() $this->assertEquals('Greetings and Salutations!', $this->subject); $this->assertNotRegExp('/^To: matthew\@example\.org$/m', $this->additional_headers); - $this->assertNotRegExp('/^Subject: Greetings and Salutations\!$/m', $this->additional_headers); + $this->assertNotRegExp('/^Subject: Greetings and Salutations!$/m', $this->additional_headers); } }