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

30 lines
481 B
PHP
Raw Normal View History

2019-04-20 17:37:57 +02:00
<?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('localhost');
2019-04-20 17:37:57 +02:00
return $this->cache;
}
public function tearDown()
{
$this->cache->clear(false);
parent::tearDown();
}
}