File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*
3
+ * File: Issue355Test.php
4
+ * Category: -
5
+ * Author: M.Goldenbaum
6
+ * Created: 10.01.23 10:48
7
+ * Updated: -
8
+ *
9
+ * Description:
10
+ * -
11
+ */
12
+
13
+ namespace Tests \issues ;
14
+
15
+ use PHPUnit \Framework \TestCase ;
16
+ use Webklex \PHPIMAP \Config ;
17
+ use Webklex \PHPIMAP \Header ;
18
+
19
+ class Issue420Test extends TestCase {
20
+
21
+ public function testIssue () {
22
+ $ raw_header = "Subject: =?UTF-8?B?VGlja2V0IE5vOiBb7aC97bOpMTddIE1haWxib3ggSW5ib3ggLSAoMTcpIEluY29taW5nIGZhaWxlZCBtZXNzYWdlcw==?= \r\n" ;
23
+
24
+ $ header = new Header ($ raw_header , Config::make ());
25
+ $ subject = $ header ->get ("subject " );
26
+
27
+ // Ticket No: [��17] Mailbox Inbox - (17) Incoming failed messages
28
+ $ this ->assertEquals ('Ticket No: [??17] Mailbox Inbox - (17) Incoming failed messages ' , utf8_decode ($ subject ->toString ()));
29
+ }
30
+
31
+ }
You can’t perform that action at this time.
0 commit comments