public function test_writeTmpIncludePaths() { $list = [APPPATH, BASEPATH]; Cache::writeTmpIncludePaths($list); $actual = Cache::getTmpIncludePaths(); $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); } }