Code Duplication    Length = 10-11 lines in 2 locations

tests/ImageTest.php 2 locations

@@ 239-248 (lines=10) @@
236
     * @covers ::resize
237
     * @covers ::resizeMulti
238
     */
239
    public function resizeWithColorOfBlur()
240
    {
241
        $source = new \Imagick();
242
        $source->readImage(__DIR__ . '/_files/portrait.jpg');
243
        $actual = Image::resize($source, 1024, 768, ['upsize' => true, 'bestfit' => false, 'color' => 'blur']);
244
        $expected = new \Imagick();
245
        $expected->readImage(__DIR__ . '/_files/blur.jpg');
246
        $comparison = $expected->compareImages($actual, \Imagick::METRIC_UNDEFINED);
247
        $this->assertGreaterThanOrEqual(.999, $comparison[1]);
248
    }
249
250
    /**
251
     * @test
@@ 255-265 (lines=11) @@
252
     * @covers ::resize
253
     * @covers ::resizeMulti
254
     */
255
    public function resizeWithBlurBackground()
256
    {
257
        $source = new \Imagick();
258
        $source->readImage(__DIR__ . '/_files/portrait.jpg');
259
        $actual = Image::resize($source, 1024, 768, ['upsize' => true, 'bestfit' => false, 'blurBackground' => true]);
260
261
        $expected = new \Imagick();
262
        $expected->readImage(__DIR__ . '/_files/blur.jpg');
263
        $comparison = $expected->compareImages($actual, \Imagick::METRIC_UNDEFINED);
264
        $this->assertGreaterThanOrEqual(.999, $comparison[1]);
265
    }
266
267
    /**
268
     * @test