Skip to content

Commit

Permalink
Update stream-decorator to fix #84,#87
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Mar 21, 2019
1 parent 8237716 commit 8cf739f
Show file tree
Hide file tree
Showing 6 changed files with 579 additions and 24 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"php": ">=5.4",
"guzzlehttp/psr7": "^1.0",
"zbateson/mb-wrapper": "^1.0",
"zbateson/stream-decorators": "^1.0"
"zbateson/stream-decorators": "^1.0.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5",
Expand Down
46 changes: 23 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions tests/MailMimeParser/IntegrationTests/EmailFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,29 @@ public function testParseEmailm0023()
]);
}

public function testParseEmailm0024()
{
$this->runEmailTest('m0024', [
'From' => [
'name' => 'John DOE',
'email' => 'blablafakeemail@provider.fr'
],
'To' => [
'name' => 'list-name',
'email' => 'list-name@list-domain.org'
],
'Date' => new DateTime('21 Jul 2014 17:57:01 +0200'),
'Subject' => 'Persil, abeilles ...',
'parts' => [
'multipart/mixed' => [
'text/plain',
'application/msword'
]
],
'attachments' => 1,
]);
}

public function testParseEmailm1001()
{
$this->runEmailTest('m1001', [
Expand Down
Binary file not shown.
Binary file added tests/_data/emails/files/test.doc
Binary file not shown.
Loading

0 comments on commit 8cf739f

Please sign in to comment.