mirror of
https://github.com/friendica/friendica
synced 2025-05-20 06:24:10 +02:00
35 lines
622 B
PHP
35 lines
622 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
|
|
/**
|
|
* @requires extension memcache
|
|
*/
|
|
class MemcacheCacheDriverTest extends MemoryCacheTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->configMock
|
|
->shouldReceive('get')
|
|
->with('system', 'memcache_host')
|
|
->andReturn('localhost');
|
|
|
|
$this->configMock
|
|
->shouldReceive('get')
|
|
->with('system', 'memcache_port')
|
|
->andReturn(11211);
|
|
|
|
$this->cache = CacheDriverFactory::create('memcache');
|
|
return $this->cache;
|
|
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->cache->clear(false);
|
|
parent::tearDown();
|
|
}
|
|
}
|