public function setUp() { if (!cachestore_apcu::are_requirements_met()) { $this->markTestSkipped('Could not test cachestore_apcu. Requirements are not met.'); } return parent::setUp(); }
protected function tearDown() { parent::tearDown(); if ($this->store instanceof cachestore_redis) { $this->store->purge(); } }
/** * 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(); }
/** * 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(); }