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

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