Code Duplication    Length = 9-9 lines in 2 locations

tests/integration/Modify/CopyTest.php 1 location

@@ 55-63 (lines=9) @@
52
        static::assertEquals($gzipped->getCompression(), $gzipCopy->getCompression());
53
    }
54
55
    public function testCopyAppendsCopyWhenNoPathIsSpecified()
56
    {
57
        $localFile = new LocalFile(static::$dir . 'copy_default_append.text');
58
        $localFile->put('some random text');
59
60
        $newFile = $localFile->copy();
61
62
        static::assertEquals($localFile->getPath() . '-copy', $newFile);
63
    }
64
}
65

tests/integration/Node/LocalFileTest.php 1 location

@@ 30-38 (lines=9) @@
27
        static::assertInstanceOf(FileNodeInterface::class, $file);
28
    }
29
30
    public function testGetFilePathReturnsFullyQualifiedPath()
31
    {
32
        $file = new LocalFile(static::$dir . 'file_path.test');
33
        $file->put('random');
34
35
        $expected = static::$dir . 'file_path.test';
36
37
        static::assertEquals($expected, $file->getPath());
38
    }
39
40
    public function testGetFilenameJustReturnsTheFilename()
41
    {