Code Duplication    Length = 10-10 lines in 2 locations

tests/integration/Node/LocalFileTest.php 2 locations

@@ 130-139 (lines=10) @@
127
        static::assertEquals('us-ascii', $file->getEncoding());
128
    }
129
130
    public function testSetEncodingReturnsIsFluent()
131
    {
132
        $file = new LocalFile(static::$dir . 'file_set_encoding2.test');
133
        $file->put('uncompressed contents');
134
135
        $newFile = $file->setEncoding('us-ascii');
136
137
        static::assertNotNull($newFile);
138
        static::assertSame($file, $newFile);
139
    }
140
141
    public function testSetCompressionModifiesTheEncoding()
142
    {
@@ 151-160 (lines=10) @@
148
        static::assertEquals(Gzip::NAME, $file->getCompression());
149
    }
150
151
    public function testSetCompressionReturnsIsFluent()
152
    {
153
        $file = new LocalFile(static::$dir . 'file_set_compression2.test');
154
        $file->put('uncompressed contents');
155
156
        $newFile = $file->setCompression(Gzip::NAME);
157
158
        static::assertNotNull($newFile);
159
        static::assertSame($file, $newFile);
160
    }
161
162
    public function testGetDirectoryReturnsJustTheDirectory()
163
    {