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
Archive
Test
Unit
ZipTest.php
Go to the documentation of this file.
1
<?php
2
8
namespace
Magento\Framework\Archive\Test\Unit
;
9
10
use Composer\Composer;
11
12
class
ZipTest
extends
\PHPUnit\Framework\TestCase
13
{
14
18
protected
$zip
;
19
20
protected
function
setUp
()
21
{
22
$this->zip = $this->getMockBuilder(\
Magento
\Framework\
Archive
\Zip::class)
23
->disableOriginalConstructor()
24
->getMock();
25
}
26
30
public
function
testConstructorNoExceptions
()
31
{
32
try
{
33
$reflectedClass = new \ReflectionClass(\
Magento
\Framework\
Archive
\Zip::class);
34
$constructor = $reflectedClass->getConstructor();
35
$constructor->invoke($this->zip, []);
36
}
catch
(\Exception $e) {
37
$this->fail(
'Failed asserting that no exceptions is thrown'
);
38
}
39
}
40
44
public
function
testPack
()
45
{
46
$this->markTestSkipped(
'Method pack contains dependency on \ZipArchive object'
);
47
}
48
52
public
function
testUnpack
()
53
{
54
$this->markTestSkipped(
'Method unpack contains dependency on \ZipArchive object'
);
55
}
56
}
Magento\Framework\Archive\Test\Unit\ZipTest\testUnpack
testUnpack()
Definition:
ZipTest.php:52
Magento\Framework\Archive\Test\Unit\ZipTest\setUp
setUp()
Definition:
ZipTest.php:20
Magento\Framework\Archive\Test\Unit
Definition:
ZipTest.php:8
Magento\Framework\Archive\Test\Unit\ZipTest
Definition:
ZipTest.php:12
Magento\Framework\Archive
Definition:
Archive.php:17
Magento
Magento\Framework\Archive\Test\Unit\ZipTest\testPack
testPack()
Definition:
ZipTest.php:44
Magento\Framework\Archive\Test\Unit\ZipTest\$zip
$zip
Definition:
ZipTest.php:18
Magento\Framework\Archive\Test\Unit\ZipTest\testConstructorNoExceptions
testConstructorNoExceptions()
Definition:
ZipTest.php:30