| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function testRetrieveItem() |
||
| 43 | { |
||
| 44 | $item = $this->getMockBuilder(ItemInterface::class) |
||
| 45 | ->getMock(); |
||
| 46 | |||
| 47 | $pool = $this->getMockBuilder(PoolInterface::class) |
||
| 48 | ->getMock(); |
||
| 49 | $pool->expects($this->once()) |
||
| 50 | ->method('getItem') |
||
| 51 | ->will($this->returnValue($item)); |
||
| 52 | |||
| 53 | $cacheAdapter = new CacheAdapter($pool); |
||
| 54 | |||
| 55 | $this->assertInstanceOf(ItemInterface::class, $cacheAdapter->retrieve('test_path')); |
||
| 56 | } |
||
| 58 |