30 lines
470 B
PHP
30 lines
470 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Test\src\Core\Cache;
|
||
|
|
||
|
use Friendica\Core\Cache\APCuCache;
|
||
|
|
||
|
class APCuCacheDriverTest extends MemoryCacheTest
|
||
|
{
|
||
|
protected function setUp()
|
||
|
{
|
||
|
if (!APCuCache::isAvailable()) {
|
||
|
$this->markTestSkipped('APCu is not available');
|
||
|
}
|
||
|
|
||
|
parent::setUp();
|
||
|
}
|
||
|
|
||
|
protected function getInstance()
|
||
|
{
|
||
|
$this->cache = new APCuCache();
|
||
|
return $this->cache;
|
||
|
}
|
||
|
|
||
|
public function tearDown()
|
||
|
{
|
||
|
$this->cache->clear(false);
|
||
|
parent::tearDown();
|
||
|
}
|
||
|
}
|