/**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return  void
  */
 protected function setUp()
 {
     if (!JCacheStorageXcache::isSupported()) {
         $this->markTestSkipped('The XCache cache handler is not supported on this system.');
     }
     parent::setUp();
     $this->handler = new JCacheStorageXcache();
     // Override the lifetime because the JCacheStorage API multiplies it by 60 (converts minutes to seconds)
     $this->handler->_lifetime = 2;
 }
 /**
  * Check availability of all cache handlers
  *
  * @return void
  */
 private function checkAvailability()
 {
     $this->available = array('apc' => JCacheStorageApc::isSupported(), 'apcu' => JCacheStorageApcu::isSupported(), 'cachelite' => JCacheStorageCachelite::isSupported(), 'file' => true, 'memcache' => JCacheStorageMemcache::isSupported(), 'memcached' => JCacheStorageMemcached::isSupported(), 'redis' => JCacheStorageRedis::isSupported(), 'wincache' => JCacheStorageWincache::isSupported(), 'xcache' => JCacheStorageXcache::isSupported());
 }
 /**
  * Testing unlock().
  *
  * @return  void
  */
 public function testUnlock()
 {
     $this->assertFalse($this->object->unlock(), 'Should return default false');
 }