mirror of
https://github.com/friendica/friendica
synced 2025-04-09 10:40:13 +00:00
29 lines
533 B
PHP
29 lines
533 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
|
|
/**
|
|
* @requires extension memcached
|
|
*/
|
|
class MemcachedCacheDriverTest extends MemoryCacheTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->configMock
|
|
->shouldReceive('get')
|
|
->with('system', 'memcached_hosts')
|
|
->andReturn([0 => 'localhost, 11211']);
|
|
|
|
$this->cache = CacheDriverFactory::create('memcached');
|
|
return $this->cache;
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->cache->clear(false);
|
|
parent::tearDown();
|
|
}
|
|
}
|