Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 31-46 (lines=16) @@
28
        $this->resolver = new ProxyResolver($this->primaryResolver, array('http://images.example.com'));
29
    }
30
31
    public function testProxyCallAndRewriteReturnedUrlOnResolve()
32
    {
33
        $expectedPath = '/foo/bar/bazz.png';
34
        $expectedFilter = 'test';
35
36
        $this->primaryResolver
37
            ->expects($this->once())
38
            ->method('resolve')
39
            ->with($expectedPath, $expectedFilter)
40
            ->will($this->returnValue('http://foo.com/thumbs/foo/bar/bazz.png'))
41
        ;
42
43
        $result = $this->resolver->resolve($expectedPath, $expectedFilter);
44
45
        $this->assertEquals('http://images.example.com/thumbs/foo/bar/bazz.png', $result);
46
    }
47
48
    public function testProxyCallAndRewriteReturnedUrlEvenSchemesDiffersOnResolve()
49
    {
@@ 48-63 (lines=16) @@
45
        $this->assertEquals('http://images.example.com/thumbs/foo/bar/bazz.png', $result);
46
    }
47
48
    public function testProxyCallAndRewriteReturnedUrlEvenSchemesDiffersOnResolve()
49
    {
50
        $expectedPath = '/foo/bar/bazz.png';
51
        $expectedFilter = 'test';
52
53
        $this->primaryResolver
54
            ->expects($this->once())
55
            ->method('resolve')
56
            ->with($expectedPath, $expectedFilter)
57
            ->will($this->returnValue('http://foo.com/thumbs/foo/bar/bazz.png'))
58
        ;
59
60
        $result = $this->resolver->resolve($expectedPath, $expectedFilter);
61
62
        $this->assertEquals('http://images.example.com/thumbs/foo/bar/bazz.png', $result);
63
    }
64
65
    public function testProxyCallAndRewriteReturnedUrlWithMatchReplaceOnResolve()
66
    {