Пример #1
0
 protected function setUp()
 {
     parent::setUp();
     if (!extension_loaded('memcache')) {
         $this->markTestSkipped('Memcache is not installed');
     }
 }
Пример #2
0
 protected function setUp()
 {
     parent::setUp();
     if (!function_exists('apc_store')) {
         $this->markTestSkipped('APC is not installed');
     }
 }
Пример #3
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     if (!extension_loaded('memcache') || !class_exists('\\Memcache')) {
         $this->markTestSkipped('The Memcache extension is not available.');
     }
     parent::setup();
     $this->cache->setDefaultDriver('memcache');
 }
Пример #4
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     if (!extension_loaded('xcache')) {
         $this->markTestSkipped('The xcache library is not available.');
     }
     parent::setup();
     $this->cache->setDefaultDriver('xcache');
 }
Пример #5
0
 protected function setUp()
 {
     parent::setUp();
     //TODO: Check that predis is being detected properly
     if (!class_exists('Predis\\Client')) {
         $this->markTestSkipped('Predis is not installed');
     }
 }
Пример #6
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     @(include_once 'Cache' . DS . 'Lite.php');
     if (!extension_loaded('eaccelerator') || !function_exists('eaccelerator_get')) {
         $this->markTestSkipped('The eaccelerator extension is not available.');
     }
     parent::setup();
     $this->cache->setDefaultDriver('eaccelerator');
 }
Пример #7
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     @(include_once 'Cache' . DS . 'Lite.php');
     if (!class_exists('Cache_Lite')) {
         $this->markTestSkipped('The CacheLite library is not available.');
     }
     parent::setup();
     $this->cache->setDefaultDriver('cachelite');
 }
Пример #8
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     if (!extension_loaded('apcu')) {
         $this->markTestSkipped('The APCu extension is not available.');
     }
     if (!ini_get('apc.enable_cli')) {
         $this->markTestSkipped('You need to enable apc.enable_cli');
     }
     parent::setup();
     $this->cache->setDefaultDriver('apc');
 }
Пример #9
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     if (!extension_loaded('wincache') || !function_exists('wincache_ucache_get')) {
         $this->markTestSkipped('The wincache library is not available.');
     }
     if (!ini_get('wincache.ucenabled')) {
         $this->markTestSkipped('You need to enable wincache.ucenabled');
     }
     parent::setup();
     $this->cache->setDefaultDriver('wincache');
 }
Пример #10
0
 function __construct($name = null, $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->wrapper =& PhuGlobal::$mcWrapper;
     $this->wrapper_name = 'MemcachedWrapper';
 }
Пример #11
0
 protected function setUp()
 {
     parent::setUp();
 }
Пример #12
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     parent::setup();
     $this->cache->setDefaultDriver('memory');
 }
Пример #13
0
 /**
  * Test setup
  *
  * @return  void
  */
 public function setup()
 {
     parent::setup();
     $this->cache->setDefaultDriver('file');
 }
Пример #14
0
 function __construct($name = null, $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->wrapper =& PhuGlobal::$redisWrapper;
     $this->wrapper_name = 'RedisWrapper';
 }