Code Duplication    Length = 10-10 lines in 2 locations

tests/Loader/CachableLoaderTest.php 2 locations

@@ 26-35 (lines=10) @@
23
24
class CachableLoaderTest extends TestCase
25
{
26
    public function testLoadWithoutCache()
27
    {
28
        $uri = 'http://example.com';
29
        $expiresAfter = 1800;
30
        $content = \Chrisyue\PhpM3u8\Loader\file_get_contents($uri);
31
        $cachePool = $this->prophesizeCachePool($uri, false, $content, $expiresAfter);
32
33
        $loader = new CachableLoader($cachePool->reveal(), array('ttl' => $expiresAfter));
34
        $this->assertEquals($loader->load($uri), $content);
35
    }
36
37
    public function testLoadWithCache()
38
    {
@@ 37-46 (lines=10) @@
34
        $this->assertEquals($loader->load($uri), $content);
35
    }
36
37
    public function testLoadWithCache()
38
    {
39
        $uri = 'http://site.com';
40
        $expiresAfter = 1800;
41
        $content = \Chrisyue\PhpM3u8\Loader\file_get_contents($uri);
42
        $cachePool = $this->prophesizeCachePool($uri, true, $content, $expiresAfter);
43
44
        $loader = new CachableLoader($cachePool->reveal(), array('ttl' => $expiresAfter));
45
        $this->assertEquals($loader->load($uri), $content);
46
    }
47
48
    public function testLoadCacheWithDefaultTtlOption()
49
    {