Code Duplication    Length = 9-10 lines in 2 locations

AwsS3V3AdapterTest.php 2 locations

@@ 134-143 (lines=10) @@
131
    /**
132
     * @test
133
     */
134
    public function failing_to_delete_while_moving(): void
135
    {
136
        $adapter = $this->adapter();
137
        $adapter->write('source.txt', 'contents to be copied', new Config());
138
        static::$stubS3Client->failOnNextCopy();
139
140
        $this->expectException(UnableToMoveFile::class);
141
142
        $adapter->move('source.txt', 'destination.txt', new Config());
143
    }
144
145
    /**
146
     * @test
@@ 148-156 (lines=9) @@
145
    /**
146
     * @test
147
     */
148
    public function failing_to_write_a_file(): void
149
    {
150
        $adapter = $this->adapter();
151
        static::$stubS3Client->throwDuringUpload(new RuntimeException('Oh no'));
152
153
        $this->expectException(UnableToWriteFile::class);
154
155
        $adapter->write('path.txt', 'contents', new Config());
156
    }
157
158
    /**
159
     * @test