eZ/Publish/Core/Persistence/Cache/Tests/AbstractBaseHandlerTest.php 1 location
|
@@ 100-108 (lines=9) @@
|
| 97 |
|
); |
| 98 |
|
|
| 99 |
|
$this->cacheItemsClosure = \Closure::bind( |
| 100 |
|
static function ($key, $value, $isHit, $defaultLifetime = 0) { |
| 101 |
|
$item = new CacheItem(); |
| 102 |
|
$item->key = $key; |
| 103 |
|
$item->value = $value; |
| 104 |
|
$item->isHit = $isHit; |
| 105 |
|
$item->defaultLifetime = $defaultLifetime; |
| 106 |
|
|
| 107 |
|
return $item; |
| 108 |
|
}, |
| 109 |
|
null, |
| 110 |
|
CacheItem::class |
| 111 |
|
); |
eZ/Publish/Core/Persistence/Cache/Tests/Adapter/InMemoryClearingProxyAdapterTest.php 1 location
|
@@ 58-67 (lines=10) @@
|
| 55 |
|
); |
| 56 |
|
|
| 57 |
|
$this->cacheItemsClosure = \Closure::bind( |
| 58 |
|
static function ($key, $value, $isHit, $defaultLifetime = 0, $tags = []) { |
| 59 |
|
$item = new CacheItem(); |
| 60 |
|
$item->key = $key; |
| 61 |
|
$item->value = $value; |
| 62 |
|
$item->isHit = $isHit; |
| 63 |
|
$item->prevTags = $tags; |
| 64 |
|
$item->defaultLifetime = $defaultLifetime; |
| 65 |
|
|
| 66 |
|
return $item; |
| 67 |
|
}, |
| 68 |
|
null, |
| 69 |
|
CacheItem::class |
| 70 |
|
); |