Code Duplication    Length = 8-8 lines in 4 locations

tests/integration/Modify/Compress/GzipTest.php 2 locations

@@ 75-82 (lines=8) @@
72
        static::assertEquals(0, $result, "File should not be compressed");
73
    }
74
75
    public function testCallingGzipWithAFileThatDoesNotExistsThrowsAnException()
76
    {
77
        $file = new LocalFile(static::$dir . 'invalid_gzip.test');
78
79
        $this->expectException(InvalidArgumentException::class);
80
81
        $this->gzip->compress($file);
82
    }
83
84
    public function testCallingGunzipWithAFileThatDoesNotExistsThrowsAnException()
85
    {
@@ 84-91 (lines=8) @@
81
        $this->gzip->compress($file);
82
    }
83
84
    public function testCallingGunzipWithAFileThatDoesNotExistsThrowsAnException()
85
    {
86
        $file = new LocalFile(static::$dir . 'invalid_gunzip.test');
87
88
        $this->expectException(InvalidArgumentException::class);
89
90
        $this->gzip->decompress($file);
91
    }
92
93
    public function testWhenTheProcessFailsAnExceptionIsThrownOnGzip()
94
    {

tests/integration/Modify/Compress/ZipTest.php 2 locations

@@ 85-92 (lines=8) @@
82
        static::assertEquals(0, $result, "File should not be compressed");
83
    }
84
85
    public function testCallingZipWithAFileThatDoesNotExistsThrowsAnException()
86
    {
87
        $file = new LocalFile(static::$dir . 'invalid_zip.test');
88
89
        $this->expectException(InvalidArgumentException::class);
90
91
        $this->zip->compress($file);
92
    }
93
94
    public function testCallingUnzipWithAFileThatDoesNotExistsThrowsAnException()
95
    {
@@ 94-101 (lines=8) @@
91
        $this->zip->compress($file);
92
    }
93
94
    public function testCallingUnzipWithAFileThatDoesNotExistsThrowsAnException()
95
    {
96
        $file = new LocalFile(static::$dir . 'invalid_zip.zip');
97
98
        $this->expectException(InvalidArgumentException::class);
99
100
        $this->zip->decompress($file);
101
    }
102
103
    public function testWhenTheProcessFailsAnExceptionIsthrownOnZip()
104
    {