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