| @@ 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() |
|
| @@ 48-64 (lines=17) @@ | ||
| 45 | $this->cache->has($key); |
|
| 46 | } |
|
| 47 | ||
| 48 | public function testSet() |
|
| 49 | { |
|
| 50 | ||
| 51 | $key = 'key'; |
|
| 52 | $value = 'value'; |
|
| 53 | $expires = 10; |
|
| 54 | ||
| 55 | $this->storageMock->expects($this->once()) |
|
| 56 | ->method('set') |
|
| 57 | ->with( |
|
| 58 | $this->equalTo($key), |
|
| 59 | $this->equalTo($value), |
|
| 60 | $this->equalTo($expires) |
|
| 61 | ); |
|
| 62 | ||
| 63 | $this->cache->set($key, $value, $expires); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function testSetDefaultExpires() |
|
| 67 | { |
|