]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/ArrayCacheDriverTest.php
skipping TTL tests
[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 /**
9  * @runTestsInSeparateProcesses
10  * @preserveGlobalState disabled
11  */
12 class ArrayCacheDriverTest extends MemoryCacheTest
13 {
14         protected function getInstance()
15         {
16                 $this->cache = new ArrayCache();
17                 return $this->cache;
18         }
19
20         public function tearDown()
21         {
22                 $this->cache->clear(false);
23                 parent::tearDown();
24         }
25
26         public function testTTL()
27         {
28                 // Array Cache doesn't support TTL
29                 return true;
30         }
31 }