]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Lock/APCuCacheLockTest.php
Merge pull request #8075 from annando/html-escaping
[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 /**
9  * @group APCU
10  */
11 class APCuCacheLockTest extends LockTest
12 {
13         protected function setUp()
14         {
15                 if (!APCuCache::isAvailable()) {
16                         $this->markTestSkipped('APCu is not available');
17                 }
18
19                 parent::setUp();
20         }
21
22         protected function getInstance()
23         {
24                 return new CacheLock(new APCuCache('localhost'));
25         }
26 }