]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/APCuCacheTest.php
wrapping up 2019.12
[friendica.git] / tests / src / Core / Cache / APCuCacheTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Cache;
4
5 use Friendica\Core\Cache\APCuCache;
6
7 /**
8  * @group APCU
9  */
10 class APCuCacheTest extends MemoryCacheTest
11 {
12         protected function setUp()
13         {
14                 if (!APCuCache::isAvailable()) {
15                         $this->markTestSkipped('APCu is not available');
16                 }
17
18                 parent::setUp();
19         }
20
21         protected function getInstance()
22         {
23                 $this->cache = new APCuCache('localhost');
24                 return $this->cache;
25         }
26
27         public function tearDown()
28         {
29                 $this->cache->clear(false);
30                 parent::tearDown();
31         }
32 }