_memcache = new \Memcache; $ok = @$this->_memcache->connect('localhost', 11211); if (!$ok) { $this->markTestSkipped('The ' . __CLASS__ .' requires the use of memcache'); } } else { $this->markTestSkipped('The ' . __CLASS__ .' requires the use of memcache'); } } protected function _getCacheDriver() { $driver = new MemcacheCache(); $driver->setMemcache($this->_memcache); return $driver; } }