Debian Codegraph @

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

raw symbols SCIP
1 <?php
2 /*
3 * File: WithoutCharsetPlainOnlyTest.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 WithoutCharsetPlainOnlyTest
17 *
18 * @package Tests\fixtures
19 */
20 class WithoutCharsetPlainOnlyTest extends FixtureTestCase {
21
22 /**
23 * Test the fixture without_charset_plain_only.eml
24 *
25 * @return void
26 */
27 public function testFixture() : void {
28 $message = $this->getFixture("without_charset_plain_only.eml");
29
30 self::assertEquals("Nuu", $message->getSubject());
31 self::assertEquals("Hi", $message->getTextBody());
32 self::assertFalse($message->hasHTMLBody());
33 self::assertEquals("2017-09-13 11:05:45", $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 }