Code Duplication    Length = 10-10 lines in 2 locations

tests/integration/Modify/Transfer/TransferTest.php 2 locations

@@ 83-92 (lines=10) @@
80
        static::assertFalse($fromFile->exists());
81
    }
82
83
    public function testCopyWhenOriginalFileDoesNotExistThrowsAnException()
84
    {
85
        $fromFile = new LocalFile(static::$dir . 'fail_from.text');
86
87
        $toFile = new LocalFile(static::$dir . 'fail_to.text');
88
89
        $this->expectException(FileNotFoundException::class);
90
91
        $this->transfer->copyTo($fromFile, $toFile);
92
    }
93
94
    public function testMoveWhenOriginalFileDoesNotExistThrowsAnException()
95
    {
@@ 94-103 (lines=10) @@
91
        $this->transfer->copyTo($fromFile, $toFile);
92
    }
93
94
    public function testMoveWhenOriginalFileDoesNotExistThrowsAnException()
95
    {
96
        $fromFile = new LocalFile(static::$dir . 'fail_move_from.text');
97
98
        $toFile = new LocalFile(static::$dir . 'fail_move_to.text');
99
100
        $this->expectException(FileNotFoundException::class);
101
102
        $this->transfer->moveTo($fromFile, $toFile);
103
    }
104
105
    public function testCopyWhenFilesystemDoesNotReadStreamThrowsAnException()
106
    {