Skip to content

Commit

Permalink
fixed wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Ghisleni committed Aug 26, 2022
1 parent 7a2cd84 commit 2b6651b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1076,11 +1076,11 @@ public function testUndefinedCharset(): void

$headers = $message->getHeaders();

static::assertGreaterThan(3, \count($headers));

static::assertArrayHasKey('from', $headers);
static::assertArrayHasKey('to', $headers);
static::assertArrayHasKey('date', $headers);
static::assertCount(1,$message->getTo());
static::assertSame('<[email protected]>', $headers['message_id']);
static::assertArrayNotHasKey('subject', $headers);
static::assertArrayNotHasKey('from', $headers);
static::assertNull($message->getSubject());
static::assertNull($message->getFrom());
}
}
1 change: 0 additions & 1 deletion tests/fixtures/undefined_charset_header.eml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Received: from <[email protected]>
X-Autogenerated: Mirror
Resent-From: <[email protected]>
Resent-Date: Mon, 27 Feb 2017 13:21:44 +0930

Message-Id: <[email protected]>
From: =?X-IAS-German?B?bXlHb3Y=?=<[email protected]>
To: [email protected]
Expand Down

0 comments on commit 2b6651b

Please sign in to comment.