]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Lock/APCuCacheLockTest.php
Merge pull request #7465 from nupplaphil/task/dice_cache_lock
[friendica.git] / tests / src / Core / Lock / APCuCacheLockTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Lock;
4
5 use Friendica\Core\Cache\APCuCache;
6 use Friendica\Core\Lock\CacheLock;
7
8 class APCuCacheLockTest extends LockTest
9 {
10         protected function setUp()
11         {
12                 if (!APCuCache::isAvailable()) {
13                         $this->markTestSkipped('APCu is not available');
14                 }
15
16                 parent::setUp();
17         }
18
19         protected function getInstance()
20         {
21                 return new CacheLock(new APCuCache('localhost'));
22         }
23 }