]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/MemcachedCacheDriverTest.php
Merge remote-tracking branch 'upstream/develop' into ap-delivery-failure
[friendica.git] / tests / src / Core / Cache / MemcachedCacheDriverTest.php
1 <?php
2
3
4 namespace Friendica\Test\src\Core\Cache;
5
6 use Friendica\Factory\CacheDriverFactory;
7
8 /**
9  * @requires extension memcached
10  */
11 class MemcachedCacheDriverTest extends MemoryCacheTest
12 {
13         protected function getInstance()
14         {
15                 $this->configMock
16                         ->shouldReceive('get')
17                         ->with('system', 'memcached_hosts')
18                         ->andReturn([0 => 'localhost, 11211']);
19
20                 $this->cache = CacheDriverFactory::create('memcached');
21                 return $this->cache;
22         }
23
24         public function tearDown()
25         {
26                 $this->cache->clear(false);
27                 parent::tearDown();
28         }
29 }