-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address decoding error detection added #388
- Loading branch information
Showing
4 changed files
with
58 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/* | ||
* File: UndisclosedRecipientsTest.php | ||
* Category: - | ||
* Author: M.Goldenbaum | ||
* Created: 09.03.23 02:24 | ||
* Updated: - | ||
* | ||
* Description: | ||
* - | ||
*/ | ||
|
||
namespace Tests\fixtures; | ||
|
||
/** | ||
* Class UndisclosedRecipientsTest | ||
* | ||
* @package Tests\fixtures | ||
*/ | ||
class UndisclosedRecipientsTest extends FixtureTestCase { | ||
|
||
/** | ||
* Test the fixture undisclosed_recipients.eml | ||
* | ||
* @return void | ||
*/ | ||
public function testFixture() : void { | ||
$message = $this->getFixture("undisclosed_recipients.eml"); | ||
|
||
self::assertEquals("test", $message->subject); | ||
self::assertEquals("Hi!", $message->getTextBody()); | ||
self::assertFalse($message->hasHTMLBody()); | ||
self::assertEquals("2017-09-27 10:48:51", $message->date->first()->setTimezone('UTC')->format("Y-m-d H:i:s")); | ||
self::assertEquals("[email protected]", $message->from); | ||
self::assertEquals([ | ||
"Undisclosed Recipients", | ||
"" | ||
], $message->to->map(function ($item) { | ||
return $item->mailbox; | ||
})); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Subject: test | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain | ||
Date: Wed, 27 Sep 2017 12:48:51 +0200 | ||
From: [email protected] | ||
To: "Undisclosed Recipients" <> | ||
|
||
Hi! |