| @@ 36-52 (lines=17) @@ | ||
| 33 | $this->cache->has($key); |
|
| 34 | } |
|
| 35 | ||
| 36 | public function testSet() |
|
| 37 | { |
|
| 38 | ||
| 39 | $key = 'key'; |
|
| 40 | $value = 'value'; |
|
| 41 | $expires = 10; |
|
| 42 | ||
| 43 | $this->storageMock->expects($this->once()) |
|
| 44 | ->method('set') |
|
| 45 | ->with( |
|
| 46 | $this->equalTo($key), |
|
| 47 | $this->equalTo($value), |
|
| 48 | $this->equalTo($expires) |
|
| 49 | ); |
|
| 50 | ||
| 51 | $this->cache->set($key, $value, $expires); |
|
| 52 | } |
|
| 53 | ||
| 54 | public function testGet() |
|
| 55 | { |
|
| @@ 83-98 (lines=16) @@ | ||
| 80 | ); |
|
| 81 | } |
|
| 82 | ||
| 83 | public function testSet() |
|
| 84 | { |
|
| 85 | $key = 'key'; |
|
| 86 | $value = 'value'; |
|
| 87 | $expires = 10; |
|
| 88 | ||
| 89 | $this->memcacheMock->expects($this->once()) |
|
| 90 | ->method('set') |
|
| 91 | ->with( |
|
| 92 | $this->equalTo($key), |
|
| 93 | $this->equalTo($value), |
|
| 94 | $this->equalTo($expires) |
|
| 95 | ); |
|
| 96 | ||
| 97 | $this->memcacheStorage->set($key, $value, $expires); |
|
| 98 | } |
|
| 99 | ||
| 100 | ||
| 101 | public function testGet() |
|