/** * Loads language strings from cache. * * @access protected * @param string $language Name of the language pack * @param string $file File from which we are loading the strings * @return boolean */ protected function loadFromCache($language, $file) { $this->strings[$language] = $this->cache->get('mako.i18n.' . $language); return $this->strings[$language] !== false && isset($this->strings[$language][$file]); }
/** * */ public function testClear() { $store = $this->getStore(); $store->shouldReceive('clear')->once()->andReturn(true); $cache = new Cache($store); $cache->clear(); }