Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
HttpsTest.php
Go to the documentation of this file.
1 <?php
7 
8 use \Magento\Framework\Filesystem\Driver\Https;
9 
10 class HttpsTest extends \PHPUnit\Framework\TestCase
11 {
12  public static $fSockOpen;
13 
14  protected function setUp()
15  {
16  require_once __DIR__ . '/../_files/http_mock.php';
17  self::$fSockOpen = 'resource';
18  }
19 
20  public function testFileOpen()
21  {
22  $this->assertEquals(self::$fSockOpen, (new Https())->fileOpen('example.com', 'r'));
23  }
24 }
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60