Skip to content

Commit 7917e78

Browse files
committed
Remove soft line breaking when searching into the source.
1 parent 64ce7cd commit 7917e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MailCatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function seeInEmail($expected, MailCollection $emails = null)
152152
}
153153

154154
$emails = $emails->filter(function(Mail $mail) use ($expected) {
155-
return false !== strstr($mail->source(), $expected);
155+
return false !== strstr(str_replace("=\r\n", '', $mail->source()), $expected);
156156
});
157157

158158
$this->assertNotEmpty($emails->count(), 'Email contains');

0 commit comments

Comments
 (0)