| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 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 |
ages |
| 28 |
$this->assertEquals('Ticket No: [??17] Mailbox Inbox - (17) Incoming failed messages', utf8_decode($subject->toString())); |
| 29 |
} |
| 30 |
|
| 31 |
} |