Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 435-451 (lines=17) @@
432
        $resolver->remove(array(), array('aFilterOne', 'aFilterTwo'));
433
    }
434
435
    public function testShouldRemoveDoubleSlashInUrl()
436
    {
437
        $resolver = new WebPathResolver(
438
            $this->createFilesystemMock(),
439
            new RequestContext(),
440
            '/aWebRoot',
441
            'aCachePrefix'
442
        );
443
444
        $rc = new \ReflectionClass($resolver);
445
        $method = $rc->getMethod('getFileUrl');
446
        $method->setAccessible(true);
447
448
        $result = $method->invokeArgs($resolver, array('/cats.jpg', 'some_filter'));
449
450
        $this->assertEquals('aCachePrefix/some_filter/cats.jpg', $result);
451
    }
452
453
    public function testShouldSanitizeSeparatorBetweenSchemeAndAuthorityInUrl()
454
    {
@@ 453-469 (lines=17) @@
450
        $this->assertEquals('aCachePrefix/some_filter/cats.jpg', $result);
451
    }
452
453
    public function testShouldSanitizeSeparatorBetweenSchemeAndAuthorityInUrl()
454
    {
455
        $resolver = new WebPathResolver(
456
            $this->createFilesystemMock(),
457
            new RequestContext(),
458
            '/aWebRoot',
459
            'aCachePrefix'
460
        );
461
462
        $rc = new \ReflectionClass($resolver);
463
        $method = $rc->getMethod('getFileUrl');
464
        $method->setAccessible(true);
465
466
        $result = $method->invokeArgs($resolver, array('https://some.meme.com/cute/cats.jpg', 'some_filter'));
467
468
        $this->assertEquals('aCachePrefix/some_filter/https---some.meme.com/cute/cats.jpg', $result);
469
    }
470
471
    /**
472
     * @return \PHPUnit_Framework_MockObject_MockObject|Filesystem