Пример #1
0
 public function setUp()
 {
     if (!cachestore_apcu::are_requirements_met()) {
         $this->markTestSkipped('Could not test cachestore_apcu. Requirements are not met.');
     }
     return parent::setUp();
 }
Пример #2
0
 protected function tearDown()
 {
     parent::tearDown();
     if ($this->store instanceof cachestore_redis) {
         $this->store->purge();
     }
 }
Пример #3
0
 /**
  * Prepare to run tests.
  */
 public function setUp()
 {
     if (defined('TEST_CACHESTORE_MONGODB_TESTSERVER')) {
         set_config('testserver', TEST_CACHESTORE_MONGODB_TESTSERVER, 'cachestore_mongodb');
         $this->resetAfterTest();
     }
     parent::setUp();
 }
Пример #4
0
 /**
  * Prepare to run tests.
  */
 public function setUp()
 {
     if (defined('TEST_CACHESTORE_MEMCACHED_TESTSERVERS')) {
         set_config('testservers', TEST_CACHESTORE_MEMCACHED_TESTSERVERS, 'cachestore_memcached');
         $this->resetAfterTest();
     }
     parent::setUp();
 }