-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #17 : Fixes when set -f option, no set -f option automatically
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
- Loading branch information
1 parent
639d079
commit 500ed9d
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -282,4 +282,30 @@ public function testHeadersToAndSubjectAreNotDuplicated() | |
$this->assertNotRegExp('/^To: matthew\@example\.org$/m', $this->additional_headers); | ||
$this->assertNotRegExp('/^Subject: Greetings and Salutations!$/m', $this->additional_headers); | ||
} | ||
|
||
public function testNotSetOptionAutomaticallyOnLeadingF() | ||
{ | ||
if ($this->operating_system == 'WIN') { | ||
$this->markTestSkipped('This test is *nix-specific'); | ||
} | ||
|
||
$message = $this->getMessage(); | ||
$this->transport->setParameters('-f\'[email protected]\''); | ||
|
||
$this->transport->send($message); | ||
$this->assertEquals('-f\'[email protected]\'', $this->additional_parameters); | ||
} | ||
|
||
public function testNotSetOptionAutomaticallyOnMiddleF() | ||
{ | ||
if ($this->operating_system == 'WIN') { | ||
$this->markTestSkipped('This test is *nix-specific'); | ||
} | ||
|
||
$message = $this->getMessage(); | ||
$this->transport->setParameters('-bs -f\'[email protected]\''); | ||
|
||
$this->transport->send($message); | ||
$this->assertEquals('-bs -f\'[email protected]\'', $this->additional_parameters); | ||
} | ||
} |