]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/APCuCacheDriverTest.php
Merge pull request #7029 from nupplaphil/task/mod_manifest
[friendica.git] / tests / src / Core / Cache / APCuCacheDriverTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Cache;
4
5 use Friendica\Core\Cache\APCuCache;
6
7 class APCuCacheDriverTest extends MemoryCacheTest
8 {
9         protected function setUp()
10         {
11                 if (!APCuCache::isAvailable()) {
12                         $this->markTestSkipped('APCu is not available');
13                 }
14
15                 parent::setUp();
16         }
17
18         protected function getInstance()
19         {
20                 $this->cache = new APCuCache();
21                 return $this->cache;
22         }
23
24         public function tearDown()
25         {
26                 $this->cache->clear(false);
27                 parent::tearDown();
28         }
29 }