Code Duplication    Length = 12-12 lines in 2 locations

Tests/Cache/CacheTest.php 2 locations

@@ 40-51 (lines=12) @@
37
        $this->cache->set($key, $value, $expires);
38
    }
39
40
    public function testGet()
41
    {
42
        $key = 'key';
43
44
        $this->storageMock->expects($this->once())
45
            ->method('get')
46
            ->with(
47
                $this->equalTo($key)
48
            );
49
50
        $this->cache->get($key);
51
    }
52
53
    public function testDelete()
54
    {
@@ 53-64 (lines=12) @@
50
        $this->cache->get($key);
51
    }
52
53
    public function testDelete()
54
    {
55
        $key = 'key';
56
57
        $this->storageMock->expects($this->once())
58
            ->method('delete')
59
            ->with(
60
                $this->equalTo($key)
61
            );
62
63
        $this->cache->delete($key);
64
    }
65
66
    public function testWithCacheStorage()
67
    {