public function test_writeTmpExcludePaths()
 {
     $list = [APPPATH . 'test'];
     Cache::writeTmpExcludePaths($list);
     $actual = Cache::getTmpExcludePaths();
     $this->assertEquals($list, $actual);
 }
 protected static function checkPathsUpdate()
 {
     $cached = Cache::getTmpIncludePaths();
     $current = PathChecker::getIncludePaths();
     // Updated?
     if ($cached !== $current) {
         MonkeyPatchManager::log('clear_src_cache: from ' . __METHOD__);
         Cache::clearSrcCache();
         Cache::writeTmpIncludePaths($current);
     }
     $cached = Cache::getTmpExcludePaths();
     $current = PathChecker::getExcludePaths();
     // Updated?
     if ($cached !== $current) {
         MonkeyPatchManager::log('clear_src_cache: from ' . __METHOD__);
         Cache::clearSrcCache();
         Cache::writeTmpExcludePaths($current);
     }
 }