Code Duplication    Length = 13-13 lines in 2 locations

Tests/Imagine/Cache/Resolver/AmazonS3ResolverTest.php 1 location

@@ 34-46 (lines=13) @@
31
        $resolver->resolve('/some-folder/path.jpg', 'thumb');
32
    }
33
34
    public function testObjUrlOptionsPassedToAmazonOnResolve()
35
    {
36
        $s3 = $this->createAmazonS3Mock();
37
        $s3
38
            ->expects($this->once())
39
            ->method('get_object_url')
40
            ->with('images.example.com', 'thumb/some-folder/path.jpg', 0, array('torrent' => true))
41
        ;
42
43
        $resolver = new AmazonS3Resolver($s3, 'images.example.com');
44
        $resolver->setObjectUrlOption('torrent', true);
45
        $resolver->resolve('/some-folder/path.jpg', 'thumb');
46
    }
47
48
    public function testThrowsAndLogIfCanNotCreateObjectOnAmazon()
49
    {

Tests/Imagine/Cache/Resolver/AwsS3ResolverTest.php 1 location

@@ 34-46 (lines=13) @@
31
        $resolver->resolve('/some-folder/path.jpg', 'thumb');
32
    }
33
34
    public function testObjUrlOptionsPassedToS3ClintOnResolve()
35
    {
36
        $s3 = $this->getS3ClientMock();
37
        $s3
38
            ->expects($this->once())
39
            ->method('getObjectUrl')
40
            ->with('images.example.com', 'thumb/some-folder/path.jpg', 0, array('torrent' => true))
41
        ;
42
43
        $resolver = new AwsS3Resolver($s3, 'images.example.com');
44
        $resolver->setObjectUrlOption('torrent', true);
45
        $resolver->resolve('/some-folder/path.jpg', 'thumb');
46
    }
47
48
    public function testLogNotCreatedObjects()
49
    {