| @@ 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() |
|
| @@ 65-81 (lines=17) @@ | ||
| 62 | /** |
|
| 63 | * Test that CacheStorageInterface::set() is called |
|
| 64 | */ |
|
| 65 | public function testSet() |
|
| 66 | { |
|
| 67 | ||
| 68 | $key = 'key'; |
|
| 69 | $value = 'value'; |
|
| 70 | $expires = 10; |
|
| 71 | $this->storageMock->expects($this->once()) |
|
| 72 | ->method('set') |
|
| 73 | ->with( |
|
| 74 | $this->equalTo($key), |
|
| 75 | $this->equalTo($value), |
|
| 76 | $this->equalTo($expires) |
|
| 77 | ); |
|
| 78 | $this->cache->set($key, $value, $expires); |
|
| 79 | } |
|
| 80 | ||
| 81 | /** |
|
| 82 | * Test that CacheStorageInterface::get() is called |
|
| 83 | */ |
|
| 84 | public function testGet() |
|