Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ZipTest.php
Go to the documentation of this file.
1 <?php
2 
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 }