Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testRun(): void |
||
17 | { |
||
18 | StaticCache::setCache(new Simple\Memory()); |
||
19 | $this->assertNotEmpty(StaticCache::getCache()); |
||
20 | StaticCache::init(''); |
||
21 | |||
22 | $this->assertFalse(StaticCache::exists()); |
||
23 | $this->assertEquals('', StaticCache::get()); |
||
24 | // simple write |
||
25 | $this->assertTrue(StaticCache::set(static::TESTING_CONTENT)); |
||
26 | $this->assertTrue(StaticCache::exists()); |
||
27 | $this->assertEquals(static::TESTING_CONTENT, StaticCache::get()); |
||
28 | // clear all |
||
29 | StaticCache::clear(); |
||
30 | $this->assertFalse(StaticCache::exists()); |
||
31 | } |
||
44 |