public function setUp()
 {
     if (!extension_loaded('apc')) {
         $this->markTestSkipped('APC extension is needed to run this test.');
     } else {
         $this->_instance = new Zend_Cache_Backend_APC(array());
         parent::setUp();
     }
 }
 public function setUp()
 {
     if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
         $this->_cacheDir = $this->_getTmpDirWindows() . DIRECTORY_SEPARATOR;
     } else {
         $this->_cacheDir = $this->_getTmpDirUnix() . DIRECTORY_SEPARATOR;
     }
     $this->_instance = new Zend_Cache_Backend_File(array('cacheDir' => $this->_cacheDir));
     parent::setUp();
 }
 public function setUp()
 {
     $this->_config = ZFTestManager::getConfig('Zend_Cache');
     if (!extension_loaded('memcache')) {
         $this->markTestSkipped('APC extension is needed to run this test.');
         return;
     }
     if (!isset($this->_config['memcache_host']) || !isset($this->_config['memcache_port']) || !isset($this->_config['memcache_persistent'])) {
         $this->markTestSkipped('[Zend_Cache] memcache_host, memcache_port, and memcache_persistent must be set to run these tests.');
         return;
     }
     $server = array('host' => $this->_config['memcache_host'], 'port' => $this->_config['memcache_port'], 'persistent' => $this->_config['memcache_persistent']);
     $options = array('servers' => array(0 => $server));
     $this->_instance = new Zend_Cache_Backend_Memcached($options);
     parent::setUp();
 }