Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/vendor/voku/.././webklex/php-imap/./tests
الملفات الموجودة في هذا الـ Path:
.
..
AddressTest.php
AttributeTest.php
ClientManagerTest.php
ClientTest.php
HeaderTest.php
ImapProtocolTest.php
MessageTest.php
PartTest.php
StructureTest.php
fixtures
issues
live
messages
مشاهدة ملف: ImapProtocolTest.php
<?php
/*
* File: ImapProtocolTest.php
* Category: -
* Author: M.Goldenbaum
* Created: 28.12.22 18:11
* Updated: -
*
* Description:
* -
*/
namespace Tests;
use PHPUnit\Framework\TestCase;
use Webklex\PHPIMAP\Connection\Protocols\ImapProtocol;
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException;
class ImapProtocolTest extends TestCase {
/**
* ImapProtocol test
*
* @return void
*/
public function testImapProtocol(): void {
$protocol = new ImapProtocol(false);
self::assertSame(false, $protocol->getCertValidation());
self::assertSame("", $protocol->getEncryption());
$protocol->setCertValidation(true);
$protocol->setEncryption("ssl");
self::assertSame(true, $protocol->getCertValidation());
self::assertSame("ssl", $protocol->getEncryption());
}
}