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

30 lines
547 B
PHP
Raw Normal View History

<?php
namespace Friendica\Test\src\Core\Cache;
use Friendica\Core\Cache\CacheDriverFactory;
/**
* @requires extension memcached
*/
2018-07-07 18:35:42 +00:00
class MemcachedCacheDriverTest extends MemoryCacheTest
{
protected function getInstance()
{
$this->configCache
->shouldReceive('get')
->with('system', 'memcached_hosts', NULL, false)
->andReturn([0 => 'localhost, 11211']);
$this->cache = CacheDriverFactory::create('memcached');
return $this->cache;
}
public function tearDown()
{
$this->cache->clear(false);
parent::tearDown();
}
}