Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class CacheStatsTest extends TestCase |
||
7 | { |
||
8 | private $cache; |
||
9 | private $cacheDir; |
||
10 | |||
11 | protected function setUp(): void |
||
12 | { |
||
13 | $this->cacheDir = __DIR__ . '/cache_stats'; |
||
14 | if (!file_exists($this->cacheDir) || !is_dir($this->cacheDir)) { |
||
15 | mkdir($this->cacheDir, 0755, true); |
||
16 | } |
||
17 | |||
18 | $this->cache = new Cacheer(['cacheDir' => $this->cacheDir]); |
||
19 | } |
||
20 | |||
21 | protected function tearDown(): void |
||
22 | { |
||
23 | $this->cache->flushCache(); |
||
24 | } |
||
25 | |||
26 | public function test_stats_record_hits_and_misses() |
||
37 | } |
||
38 | } |
||
39 |