]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Lock/CacheLockDriverTest.php
a089059725391c89b348bd928b8b25757575c7de
[friendica.git] / tests / src / Core / Lock / CacheLockDriverTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Lock;
4
5
6 use Friendica\Core\Cache\ArrayCache;
7 use Friendica\Core\Lock\CacheLockDriver;
8
9 class CacheLockDriverTest extends LockTest
10 {
11         /**
12          * @var \Friendica\Core\Cache\IMemoryCacheDriver
13          */
14         private $cache;
15
16         protected function getInstance()
17         {
18                 $this->cache = new ArrayCache();
19                 return new CacheLockDriver($this->cache);
20         }
21
22         public function tearDown()
23         {
24                 $this->cache->clear();
25                 parent::tearDown();
26         }
27 }