Exemplo n.º 1
0
 function getTests()
 {
     $r = parent::getTests();
     if (count($r)) {
         if (!extension_loaded('memcache')) {
             $this->mmcError = 'UTjCacheMemcache cannot be run because memcache is not installed';
             return array('tfail');
         }
         if (version_compare(phpversion('memcache'), '3.0.1') > 0) {
             $this->mmcError = 'UTjCacheMemcache22 cannot be run because version of memcache is wrong (should be <= 3.0.1)';
             return array('tfail');
         }
     }
     return $r;
 }