| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class CacheAdapterTest extends TestCase |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @test |
||
| 24 | */ |
||
| 25 | public function testStoreItem() |
||
| 26 | { |
||
| 27 | $pool = $this->getMockBuilder(PoolInterface::class) |
||
| 28 | ->getMock(); |
||
| 29 | $pool->expects($this->once()) |
||
| 30 | ->method('save'); |
||
| 31 | |||
| 32 | $item = $this->getMockBuilder(ItemInterface::class) |
||
| 33 | ->getMock(); |
||
| 34 | |||
| 35 | $cacheAdapter = new CacheAdapter($pool); |
||
| 36 | $cacheAdapter->store($item); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @test |
||
| 41 | */ |
||
| 42 | public function testRetrieveItem() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |