$this->skippedTests
['testSetMultipleNoIterable'
] =
$this->skippedTests
['testHasInvalidKeys'
] =
$this->skippedTests
['testDeleteInvalidKeys'
] =
$this->skippedTests
['testDeleteMultipleInvalidKeys'
] =
$this->skippedTests
['testDeleteMultipleNoIterable'
] = 'Keys are checked only when assert() is enabled.';
} catch (\Exception
$e) { } } public function createSimpleCache(int
$defaultLifetime = 0
): CacheInterface
{ return new Psr16Cache(new ProxyAdapter(new ArrayAdapter($defaultLifetime), 'my-namespace.'
));
} public function testProxy() { $pool =
new ArrayAdapter();
$cache =
new Psr16Cache(new ProxyAdapter($pool, 'my-namespace.'
));
$this->
assertNull($cache->
get('some-key'
));
$this->
assertTrue($cache->
set('some-other-key', 'value'
));
$item =
$pool->
getItem('my-namespace.some-other-key', 'value'
);