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

27 lines
413 B
PHP
Raw Normal View History

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