friendica/tests/src/Core/Cache/ArrayCacheTest.php

27 lines
418 B
PHP
Raw Normal View History

<?php
namespace Friendica\Test\src\Core\Cache;
use Friendica\Core\Cache\ArrayCache;
class ArrayCacheTest extends MemoryCacheTest
{
protected function getInstance()
{
$this->cache = new ArrayCache('localhost');
return $this->cache;
}
public function tearDown()
{
2018-07-07 14:35:42 -04:00
$this->cache->clear(false);
parent::tearDown();
}
public function testTTL()
{
// Array Cache doesn't support TTL
return true;
}
}