1
+ <?php
2
+ /*
3
+ * File: Issue410Test.php
4
+ * Category: -
5
+ * Author: M.Goldenbaum
6
+ * Created: 23.06.23 20:41
7
+ * Updated: -
8
+ *
9
+ * Description:
10
+ * -
11
+ */
12
+
13
+ namespace Tests \issues ;
14
+
15
+ use PHPUnit \Framework \TestCase ;
16
+ use Tests \fixtures \FixtureTestCase ;
17
+ use Webklex \PHPIMAP \Attachment ;
18
+ use Webklex \PHPIMAP \ClientManager ;
19
+ use Webklex \PHPIMAP \EncodingAliases ;
20
+ use Webklex \PHPIMAP \Exceptions \AuthFailedException ;
21
+ use Webklex \PHPIMAP \Exceptions \ConnectionFailedException ;
22
+ use Webklex \PHPIMAP \Exceptions \ImapBadRequestException ;
23
+ use Webklex \PHPIMAP \Exceptions \ImapServerErrorException ;
24
+ use Webklex \PHPIMAP \Exceptions \InvalidMessageDateException ;
25
+ use Webklex \PHPIMAP \Exceptions \MaskNotFoundException ;
26
+ use Webklex \PHPIMAP \Exceptions \MessageContentFetchingException ;
27
+ use Webklex \PHPIMAP \Exceptions \ResponseException ;
28
+ use Webklex \PHPIMAP \Exceptions \RuntimeException ;
29
+ use Webklex \PHPIMAP \Message ;
30
+
31
+ class Issue511Test extends FixtureTestCase {
32
+
33
+ /**
34
+ * @throws RuntimeException
35
+ * @throws MessageContentFetchingException
36
+ * @throws ResponseException
37
+ * @throws ImapBadRequestException
38
+ * @throws InvalidMessageDateException
39
+ * @throws ConnectionFailedException
40
+ * @throws \ReflectionException
41
+ * @throws ImapServerErrorException
42
+ * @throws AuthFailedException
43
+ * @throws MaskNotFoundException
44
+ */
45
+ public function testIssueEmail () {
46
+ $ message = $ this ->getFixture ("issue-511.eml " );
47
+ self ::assertSame ("RE: [EXTERNAL] Re: Lorem Ipsum /40 one " , (string )$ message ->subject );
48
+ self ::assertSame ("COMPANYNAME | usługi <sender@sender_domain.tld> " , (string )$ message ->from ->first ());
49
+ }
50
+ }
0 commit comments