function getTests()
 {
     $r = parent::getTests();
     if (count($r)) {
         if (!extension_loaded('memcache')) {
             $this->mmcError = 'UTjKVDbMemcache cannot be run because memcache is not installed';
             return array('tfail');
         }
         /*if (version_compare(phpversion('memcache'), '3.0.1') > 0) {
               $this->mmcError = 'UTjKVDbMemcache cannot be run because version of memcache is wrong (should be <= 3.0.1)';
               $this->wrongversion = true;
               return array('tfail');
           }*/
     }
     return $r;
 }
Example #2
0
 public function testInsertReplace()
 {
     parent::testInsertReplace();
     $this->assertEqual(file_get_contents(jApp::tempPath() . 'kvfiles/tests/a2/1d/a21d88063ed27afccd86342a31c8be60_existingKey'), serialize('new value'));
 }