]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/MemcacheCacheDriverTest.php
Merge pull request #6589 from rabuzarus/20190204_-_show_forum_account_in_vcard
[friendica.git] / tests / src / Core / Cache / MemcacheCacheDriverTest.php
1 <?php
2
3
4 namespace Friendica\Test\src\Core\Cache;
5
6 use Friendica\Core\Cache\CacheDriverFactory;
7
8 /**
9  * @runTestsInSeparateProcesses
10  * @preserveGlobalState disabled
11  * @requires extension memcache
12  */
13 class MemcacheCacheDriverTest extends MemoryCacheTest
14 {
15         protected function getInstance()
16         {
17                 $this->mockConfigGet('system', 'memcache_host', 'localhost', 1);
18                 $this->mockConfigGet('system', 'memcache_port', 11211, 1);
19
20                 $this->cache = CacheDriverFactory::create('memcache');
21                 return $this->cache;
22
23         }
24
25         public function tearDown()
26         {
27                 $this->cache->clear(false);
28                 parent::tearDown();
29         }
30 }