コード例 #1
0
ファイル: MemcacheTest.php プロジェクト: dancannon/php-wowapi
 protected function setUp()
 {
     parent::setUp();
     if (!extension_loaded('memcache')) {
         $this->markTestSkipped('Memcache is not installed');
     }
 }
コード例 #2
0
ファイル: ApcTest.php プロジェクト: dancannon/php-wowapi
 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
ファイル: XCacheTest.php プロジェクト: mined-gatech/framework
 /**
  * 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
ファイル: RedisTest.php プロジェクト: hamunaptra/PHP-WowApi
 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
ファイル: ApcTest.php プロジェクト: mined-gatech/framework
 /**
  * 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
ファイル: FileTest.php プロジェクト: dancannon/php-wowapi
 protected function setUp()
 {
     parent::setUp();
 }
コード例 #12
0
ファイル: MemoryTest.php プロジェクト: mined-gatech/framework
 /**
  * Test setup
  *
  * @return  void
  */
 public function setUp()
 {
     parent::setup();
     $this->cache->setDefaultDriver('memory');
 }
コード例 #13
0
ファイル: FileTest.php プロジェクト: mined-gatech/framework
 /**
  * Test setup
  *
  * @return  void
  */
 public function setup()
 {
     parent::setup();
     $this->cache->setDefaultDriver('file');
 }
コード例 #14
0
ファイル: RedisTest.php プロジェクト: alorel/alo-framework
 function __construct($name = null, $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->wrapper =& PhuGlobal::$redisWrapper;
     $this->wrapper_name = 'RedisWrapper';
 }