| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
namespace Tests\issues; |
| 14 |
|
| 15 |
use Tests\live\LiveMailboxTestCase; |
| 16 |
use Webklex\PHPIMAP\Exceptions\AuthFailedException; |
| 17 |
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException; |
| 18 |
use Webklex\PHPIMAP\Exceptions\EventNotFoundException; |
| 19 |
use Webklex\PHPIMAP\Exceptions\FolderFetchingException; |
| 20 |
use Webklex\PHPIMAP\Exceptions\ImapBadRequestException; |
| 21 |
use Webklex\PHPIMAP\Exceptions\ImapServerErrorException; |
| 22 |
use Webklex\PHPIMAP\Exceptions\InvalidMessageDateException; |
| 23 |
use Webklex\PHPIMAP\Exceptions\MaskNotFoundException; |
| 24 |
use Webklex\PHPIMAP\Exceptions\MessageContentFetchingException; |
| 25 |
use Webklex\PHPIMAP\Exceptions\MessageFlagException; |
| 26 |
use Webklex\PHPIMAP\Exceptions\MessageHeaderFetchingException; |
| 27 |
use Webklex\PHPIMAP\Exceptions\MessageNotFoundException; |
| 28 |
use Webklex\PHPIMAP\Exceptions\ResponseException; |
| 29 |
use Webklex\PHPIMAP\Exceptions\RuntimeException; |
| 30 |
|
| 31 |
class Issue379Test extends LiveMailboxTestCase { |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
public function testIssue(): void { |
| 52 |
$folder = $this->getFolder('INBOX'); |
| 53 |
|
| 54 |
$message = $this->appendMessageTemplate($folder, "plain.eml"); |
| 55 |
$this->assertEquals(214, $message->getSize()); |
| 56 |
|
| 57 |
|
| 58 |
$this->assertTrue($message->delete(true)); |
| 59 |
} |
| 60 |
|
| 61 |
} |