]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Lock/ArrayCacheLockDriverTest.php
0e58bf49e39c0b1b3a445dd51e596937d16c3f05
[friendica.git] / tests / src / Core / Lock / ArrayCacheLockDriverTest.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 ArrayCacheLockDriverTest 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 }