@@ 85-92 (lines=8) @@ | ||
82 | static::assertEquals(0, $result, "File should not be compressed"); |
|
83 | } |
|
84 | ||
85 | public function testCallingGzipWithAFileThatDoesNotExistsThrowsAnException() |
|
86 | { |
|
87 | $file = new LocalFile(static::$dir . 'invalid_gzip.test'); |
|
88 | ||
89 | $this->expectException(InvalidArgumentException::class); |
|
90 | ||
91 | $this->gzip->compress($file); |
|
92 | } |
|
93 | ||
94 | public function testCallingGunzipWithAFileThatDoesNotExistsThrowsAnException() |
|
95 | { |
|
@@ 94-101 (lines=8) @@ | ||
91 | $this->gzip->compress($file); |
|
92 | } |
|
93 | ||
94 | public function testCallingGunzipWithAFileThatDoesNotExistsThrowsAnException() |
|
95 | { |
|
96 | $file = new LocalFile(static::$dir . 'invalid_gunzip.test'); |
|
97 | ||
98 | $this->expectException(InvalidArgumentException::class); |
|
99 | ||
100 | $this->gzip->decompress($file); |
|
101 | } |
|
102 | ||
103 | public function testWhenTheProcessFailsAnExceptionIsThrownOnGzip() |
|
104 | { |
@@ 95-102 (lines=8) @@ | ||
92 | static::assertEquals(0, $result, "File should not be compressed"); |
|
93 | } |
|
94 | ||
95 | public function testCallingZipWithAFileThatDoesNotExistsThrowsAnException() |
|
96 | { |
|
97 | $file = new LocalFile(static::$dir . 'invalid_zip.test'); |
|
98 | ||
99 | $this->expectException(InvalidArgumentException::class); |
|
100 | ||
101 | $this->zip->compress($file); |
|
102 | } |
|
103 | ||
104 | public function testCallingUnzipWithAFileThatDoesNotExistsThrowsAnException() |
|
105 | { |
|
@@ 104-111 (lines=8) @@ | ||
101 | $this->zip->compress($file); |
|
102 | } |
|
103 | ||
104 | public function testCallingUnzipWithAFileThatDoesNotExistsThrowsAnException() |
|
105 | { |
|
106 | $file = new LocalFile(static::$dir . 'invalid_zip.zip'); |
|
107 | ||
108 | $this->expectException(InvalidArgumentException::class); |
|
109 | ||
110 | $this->zip->decompress($file); |
|
111 | } |
|
112 | ||
113 | public function testWhenTheProcessFailsAnExceptionIsthrownOnZip() |
|
114 | { |