-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from rpkamp/simplify-subject-check
Add test to prove parsing empty subject works correctly
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -73,6 +73,21 @@ public function it_should_receive_all_message_data() | |
$this->assertEquals('Test body', $message->body); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function it_should_handle_message_without_subject_correctly() | ||
{ | ||
$this->sendMessage( | ||
$this->createBasicMessage('[email protected]', '[email protected]', '', 'Test body') | ||
); | ||
|
||
/** @var Message $message */ | ||
$message = iterator_to_array($this->client->findAllMessages())[0]; | ||
|
||
$this->assertEquals('', $message->subject); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
|