Code Duplication    Length = 14-14 lines in 2 locations

Tests/Imagine/Cache/Resolver/AmazonS3ResolverTest.php 2 locations

@@ 304-317 (lines=14) @@
301
        $resolver->remove(array('path.jpg'), array('filter'));
302
    }
303
304
    public function testRemoveCacheForFilterOnRemove()
305
    {
306
        $s3 = $this->createAmazonS3Mock();
307
        $s3
308
            ->expects($this->once())
309
            ->method('delete_all_objects')
310
            ->with('images.example.com', '/filter/i')
311
            ->will($this->returnValue(true))
312
        ;
313
314
        $resolver = new AmazonS3Resolver($s3, 'images.example.com');
315
316
        $resolver->remove(array(), array('filter'));
317
    }
318
319
    public function testRemoveCacheForSomeFiltersOnRemove()
320
    {
@@ 319-332 (lines=14) @@
316
        $resolver->remove(array(), array('filter'));
317
    }
318
319
    public function testRemoveCacheForSomeFiltersOnRemove()
320
    {
321
        $s3 = $this->createAmazonS3Mock();
322
        $s3
323
            ->expects($this->once())
324
            ->method('delete_all_objects')
325
            ->with('images.example.com', '/filterOne|filterTwo/i')
326
            ->will($this->returnValue(true))
327
        ;
328
329
        $resolver = new AmazonS3Resolver($s3, 'images.example.com');
330
331
        $resolver->remove(array(), array('filterOne', 'filterTwo'));
332
    }
333
334
    public function testLogIfBatchNotDeletedForFilterOnRemove()
335
    {