Code Duplication    Length = 8-8 lines in 4 locations

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

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

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

@@ 96-103 (lines=8) @@
93
        static::assertEquals(0, $result, "File should not be compressed");
94
    }
95
96
    public function testCallingZipWithAFileThatDoesNotExistsThrowsAnException()
97
    {
98
        $file = new LocalFile(static::$dir . 'invalid_zip.test');
99
100
        $this->expectException(InvalidArgumentException::class);
101
102
        $this->zip->compress($file);
103
    }
104
105
    public function testCallingUnzipWithAFileThatDoesNotExistsThrowsAnException()
106
    {
@@ 105-112 (lines=8) @@
102
        $this->zip->compress($file);
103
    }
104
105
    public function testCallingUnzipWithAFileThatDoesNotExistsThrowsAnException()
106
    {
107
        $file = new LocalFile(static::$dir . 'invalid_zip.zip');
108
109
        $this->expectException(InvalidArgumentException::class);
110
111
        $this->zip->decompress($file);
112
    }
113
114
    public function testWhenTheProcessFailsAnExceptionIsthrownOnZip()
115
    {