| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class fileTest extends cacheTestCase |
||
|
1 ignored issue
–
show
|
|||
| 20 | { |
||
| 21 | private $_cacheInstance = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * 基境缓存类型 |
||
| 25 | */ |
||
| 26 | protected function setUp() |
||
| 27 | { |
||
| 28 | \think\Cache::connect(['type' => 'File', 'path' => CACHE_PATH]); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return FileCache |
||
| 33 | */ |
||
| 34 | protected function getCacheInstance() |
||
| 35 | { |
||
| 36 | if (null === $this->_cacheInstance) { |
||
| 37 | $this->_cacheInstance = new \think\cache\driver\File(); |
||
| 38 | } |
||
| 39 | return $this->_cacheInstance; |
||
| 40 | } |
||
| 41 | |||
| 42 | // skip testExpire |
||
| 43 | public function testExpire() |
||
| 45 | } |
||
| 46 | } |
||
| 47 |