Code Duplication    Length = 12-13 lines in 3 locations

Tests/Cache/CacheTest.php 3 locations

@@ 22-34 (lines=13) @@
19
        $this->cache = new Cache($this->storageMock);
20
    }
21
22
    public function testHas()
23
    {
24
25
        $key = 'key';
26
27
        $this->storageMock->expects($this->once())
28
            ->method('has')
29
            ->with(
30
                $this->equalTo($key)
31
            );
32
33
        $this->cache->has($key);
34
    }
35
36
    public function testSet()
37
    {
@@ 54-65 (lines=12) @@
51
        $this->cache->set($key, $value, $expires);
52
    }
53
54
    public function testGet()
55
    {
56
        $key = 'key';
57
58
        $this->storageMock->expects($this->once())
59
            ->method('get')
60
            ->with(
61
                $this->equalTo($key)
62
            );
63
64
        $this->cache->get($key);
65
    }
66
67
    public function testDelete()
68
    {
@@ 67-78 (lines=12) @@
64
        $this->cache->get($key);
65
    }
66
67
    public function testDelete()
68
    {
69
        $key = 'key';
70
71
        $this->storageMock->expects($this->once())
72
            ->method('delete')
73
            ->with(
74
                $this->equalTo($key)
75
            );
76
77
        $this->cache->delete($key);
78
    }
79
80
    public function testWithCacheStorage()
81
    {