<?phpnamespaceyiiunit\framework\caching;useyii\caching\FileCache;useyiiunit\TestCase;/** * Class for testing wincache backend */classWinCacheTestextendsCacheTest{private$_cacheInstance=null;/** * @return WinCache */protectedfunctiongetCacheInstance(){if(!extension_loaded('wincache')){$this->markTestSkipped("Wincache not installed. Skipping.");}if(!ini_get('wincache.ucenabled')){$this->markTestSkipped("Wincache user cache disabled. Skipping.");}if($this->_cacheInstance===null){$this->_cacheInstance=newWinCache();}return$this->_cacheInstance;}