| @@ 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 testSet() |
|
| 59 | { |
|
| @@ 92-103 (lines=12) @@ | ||
| 89 | $this->memcacheStorage->get($key); |
|
| 90 | } |
|
| 91 | ||
| 92 | public function testDelete() |
|
| 93 | { |
|
| 94 | $key = 'key'; |
|
| 95 | ||
| 96 | $this->memcacheMock->expects($this->once()) |
|
| 97 | ->method('delete') |
|
| 98 | ->with( |
|
| 99 | $this->equalTo($key) |
|
| 100 | ); |
|
| 101 | ||
| 102 | $this->memcacheStorage->delete($key); |
|
| 103 | } |
|
| 104 | ||
| 105 | } |
|
| 106 | ||