Debian Codegraph @

lib/3rdParty/composer/webklex/php-imap/tests/fixtures/UnknownEncodingTest.php

raw symbols SCIP
1 <?php
2 /*
3 * File: UnknownEncodingTest.php
4 * Category: -
5 * Author: M.Goldenbaum
6 * Created: 09.03.23 02:24
7 * Updated: -
8 *
9 * Description:
10 * -
11 */
12
13 namespace Tests\fixtures;
14
15 /**
16 * Class UnknownEncodingTest
17 *
18 * @package Tests\fixtures
19 */
20 class UnknownEncodingTest extends FixtureTestCase {
21
22 /**
23 * Test the fixture unknown_encoding.eml
24 *
25 * @return void
26 */
27 public function testFixture() : void {
28 $message = $this->getFixture("unknown_encoding.eml");
29
30 self::assertEquals("test", $message->getSubject());
31 self::assertEquals("MyPlain", $message->getTextBody());
32 self::assertEquals("MyHtml", $message->getHTMLBody());
33 self::assertEquals("2017-09-27 10:48:51", $message->date->first()->setTimezone('UTC')->format("Y-m-d H:i:s"));
34 self::assertEquals("[email protected]", $message->from->first()->mail);
35 self::assertEquals("[email protected]", $message->to->first()->mail);
36 }
37 }