<?phpnamespaceyiiunit\framework\caching;useyii\caching\ZendDataCache;useyiiunit\TestCase;/** * Class for testing Zend cache backend */classZendDataCacheTestextendsCacheTest{private$_cacheInstance=null;/** * @return ZendDataCache */protectedfunctiongetCacheInstance(){if(!function_exists("zend_shm_cache_store")){$this->markTestSkipped("Zend Data cache not installed. Skipping.");}if($this->_cacheInstance===null){$this->_cacheInstance=newZendDataCache();}return$this->_cacheInstance;}}