@@ 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 | /** |
|
59 | * @dataProvider hasCacheProvider |
|
@@ 117-128 (lines=12) @@ | ||
114 | $this->memcacheStorage->get($key); |
|
115 | } |
|
116 | ||
117 | public function testDelete() |
|
118 | { |
|
119 | $key = 'key'; |
|
120 | ||
121 | $this->memcacheMock->expects($this->once()) |
|
122 | ->method('delete') |
|
123 | ->with( |
|
124 | $this->equalTo($key) |
|
125 | ); |
|
126 | ||
127 | $this->memcacheStorage->delete($key); |
|
128 | } |
|
129 | ||
130 | } |
|
131 |