Code Duplication    Length = 12-12 lines in 3 locations

Tests/Cache/MemcacheStorageTest.php 3 locations

@@ 45-56 (lines=12) @@
42
        $this->memcacheStorage->addServer($server, $port);
43
    }
44
45
    public function testFlush()
46
    {
47
        $delay = 10;
48
49
        $this->memcacheMock->expects($this->once())
50
            ->method('flush')
51
            ->with(
52
                $this->equalTo($delay)
53
            );
54
55
        $this->memcacheStorage->flush($delay);
56
    }
57
58
    public function testHas()
59
    {
@@ 58-69 (lines=12) @@
55
        $this->memcacheStorage->flush($delay);
56
    }
57
58
    public function testHas()
59
    {
60
        $key = 'key';
61
62
        $this->memcacheMock->expects($this->once())
63
            ->method('has')
64
            ->with(
65
                $this->equalTo($key)
66
            );
67
68
        $this->memcacheStorage->has($key);
69
    }
70
71
    public function testSet()
72
    {
@@ 105-116 (lines=12) @@
102
        $this->memcacheStorage->get($key);
103
    }
104
105
    public function testDelete()
106
    {
107
        $key = 'key';
108
109
        $this->memcacheMock->expects($this->once())
110
            ->method('delete')
111
            ->with(
112
                $this->equalTo($key)
113
            );
114
115
        $this->memcacheStorage->delete($key);
116
    }
117
118
}
119