We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d807c9 commit 4393db1Copy full SHA for 4393db1
tests/phpbu/App/Backup/Decompressor/FileTest.php
@@ -26,9 +26,18 @@ class FileTest extends TestCase
26
public function testDecompress()
27
{
28
$target = $this->createTargetMock('foo.gz', 'foo.gz');
29
- $dir = new File();
30
- $command = $dir->decompress($target);
+ $file = new File();
+ $command = $file->decompress($target);
31
32
$this->assertEquals('gzip -dk foo.gz', $command);
33
}
34
+
35
+ public function testDecompressZip()
36
+ {
37
+ $target = $this->createTargetMock('foo.zip', 'foo.zip');
38
39
40
41
+ $this->assertEquals('unzip foo.zip', $command);
42
+ }
43
0 commit comments