Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Filesystem
Test
Unit
_files
http_mock.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Filesystem\Driver
;
7
8
use
Magento\Framework\Filesystem\Test\Unit\Driver\HttpTest
;
9
15
function
file_get_contents
()
16
{
17
return
HttpTest::$fileGetContents
;
18
}
19
25
function
file_put_contents
()
26
{
27
return
HttpTest::$filePutContents
;
28
}
29
37
function
fsockopen
(&$errorNumber, &$errorMessage)
38
{
39
$errorNumber = 0;
40
$errorMessage =
''
;
41
return
HttpTest::$fsockopen
;
42
}
43
47
function
fwrite
()
48
{
49
}
50
56
function
feof
()
57
{
58
return
true
;
59
}
60
66
function
get_headers
()
67
{
68
return
HttpTest::$headers
;
69
}
Magento\Framework\Filesystem\Driver\get_headers
get_headers()
Definition:
http_mock.php:66
Magento\Framework\Filesystem\Driver\fsockopen
fsockopen(&$errorNumber, &$errorMessage)
Definition:
http_mock.php:37
Magento\Framework\Filesystem\Driver\feof
feof()
Definition:
http_mock.php:56
Magento\Framework\Filesystem\Driver
Definition:
File.php:9
Magento\Framework\Filesystem\Driver\file_put_contents
file_put_contents()
Definition:
http_mock.php:25
Magento\Framework\Filesystem\Test\Unit\Driver\HttpTest\$fileGetContents
static $fileGetContents
Definition:
HttpTest.php:17
Magento\Framework\Filesystem\Driver\fwrite
fwrite()
Definition:
http_mock.php:47
Magento\Framework\Filesystem\Test\Unit\Driver\HttpTest\$headers
static $headers
Definition:
HttpTest.php:14
Magento\Framework\Filesystem\Test\Unit\Driver\HttpTest
Definition:
HttpTest.php:11
Magento\Framework\Filesystem\Driver\file_get_contents
file_get_contents()
Definition:
http_mock.php:15
Magento\Framework\Filesystem\Test\Unit\Driver\HttpTest\$filePutContents
static $filePutContents
Definition:
HttpTest.php:20
Magento\Framework\Filesystem\Test\Unit\Driver\HttpTest\$fsockopen
static $fsockopen
Definition:
HttpTest.php:23