]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/ArrayCacheDriverTest.php
Merge branch 'item-activities' of github.com:annando/friendica into item-activities
[friendica.git] / tests / src / Core / Cache / ArrayCacheDriverTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Cache;
4
5
6 use Friendica\Core\Cache\ArrayCache;
7
8 class ArrayCacheDriverTest extends MemoryCacheTest
9 {
10         /**
11          * @var \Friendica\Core\Cache\IMemoryCacheDriver
12          */
13         private $cache;
14
15         protected function getInstance()
16         {
17                 $this->cache = new ArrayCache();
18                 return $this->cache;
19         }
20
21         public function tearDown()
22         {
23                 $this->cache->clear(false);
24                 parent::tearDown();
25         }
26
27         public function testTTL()
28         {
29                 // Array Cache doesn't support TTL
30                 return true;
31         }
32 }