Skip to content

Commit

Permalink
Sendmail test clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Aug 6, 2020
1 parent 4749925 commit 461d35a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/Transport/SendmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getMessage()
return $message;
}

public function isWindows()
private function isWindows()
{
return $this->operating_system === 'WIN';
}
Expand Down Expand Up @@ -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('[email protected]')
Expand All @@ -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);
}
}

0 comments on commit 461d35a

Please sign in to comment.