|
@@ 89-95 (lines=7) @@
|
| 86 |
|
$cacheItem = $this->getCacheItem($key, $multi ? reset($data) : $data); |
| 87 |
|
$handlerMethodName = $this->getHandlerMethodName(); |
| 88 |
|
|
| 89 |
|
If ($logHitMiss) { |
| 90 |
|
$this->loggerMock->expects($this->once())->method('logCacheHit'); |
| 91 |
|
$this->loggerMock->expects($this->never())->method('logCall'); |
| 92 |
|
$this->loggerMock->expects($this->never())->method('logCacheMiss'); |
| 93 |
|
} else { |
| 94 |
|
$this->loggerMock->expects($this->never())->method('logCall'); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
if ($multi) { |
| 98 |
|
$this->cacheMock |
|
@@ 143-149 (lines=7) @@
|
| 140 |
|
$cacheItem = $this->getCacheItem($key, null); |
| 141 |
|
$handlerMethodName = $this->getHandlerMethodName(); |
| 142 |
|
|
| 143 |
|
If ($logHitMiss) { |
| 144 |
|
$this->loggerMock->expects($this->once())->method('logCacheMiss'); |
| 145 |
|
$this->loggerMock->expects($this->never())->method('logCall'); |
| 146 |
|
$this->loggerMock->expects($this->never())->method('logCacheHit'); |
| 147 |
|
} else { |
| 148 |
|
$this->loggerMock->expects($this->once())->method('logCall'); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
if ($multi) { |
| 152 |
|
$this->cacheMock |