| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | final class StaticAccessTest extends TestCase |
||
| 8 | { |
||
| 9 | public function testFlushCacheStatic(): void |
||
| 10 | { |
||
| 11 | $result = Cacheer::flushCache(); |
||
|
|
|||
| 12 | $this->assertIsBool($result); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function testFlushCacheDynamic(): void |
||
| 16 | { |
||
| 17 | $cache = new Cacheer(); |
||
| 18 | $this->assertIsBool($cache->flushCache()); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function testSetUp(): void |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function testSetUpStatic(): void |
||
| 33 | { |
||
| 34 | $options = [ |
||
| 35 | 'driver' => 'file', |
||
| 36 | 'path' => '/tmp/cache', |
||
| 37 | ]; |
||
| 38 | Cacheer::setUp($options); |
||
| 39 | self::assertSame($options, Cacheer::getOptions()); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function testSetUpStaticWithOptionBuilder(): void |
||
| 51 | } |
||
| 52 | } |