Code Duplication    Length = 12-12 lines in 3 locations

Tests/Cache/Storage/MemcacheStorageTest.php 3 locations

@@ 58-69 (lines=12) @@
55
        $this->memcacheStorage->addServer($server, $port);
56
    }
57
58
    public function testFlush()
59
    {
60
        $delay = 10;
61
        $this->memcacheMock->expects($this->once())
62
            ->method('flush')
63
            ->with(
64
                $this->equalTo($delay)
65
            );
66
        $this->memcacheStorage->flush($delay);
67
    }
68
69
    /**
70
     * @dataProvider hasCacheProvider
71
     */
72
    public function testHas($expected)
@@ 104-115 (lines=12) @@
101
            );
102
        $this->memcacheStorage->set($key, $value, $expires);
103
    }
104
    public function testGet()
105
    {
106
        $key = 'key';
107
        $this->memcacheMock->expects($this->once())
108
            ->method('get')
109
            ->with(
110
                $this->equalTo($key)
111
            );
112
        $this->memcacheStorage->get($key);
113
    }
114
    public function testDelete()
115
    {
116
        $key = 'key';
117
        $this->memcacheMock->expects($this->once())
118
            ->method('delete')
@@ 114-125 (lines=12) @@
111
            );
112
        $this->memcacheStorage->get($key);
113
    }
114
    public function testDelete()
115
    {
116
        $key = 'key';
117
        $this->memcacheMock->expects($this->once())
118
            ->method('delete')
119
            ->with(
120
                $this->equalTo($key)
121
            );
122
        $this->memcacheStorage->delete($key);
123
    }
124
125
126
}
127