redis = RC::getConnection(); $this->redis->flushDatabase(); } protected function tearDown() { } protected function onNotSuccessfulTest($exception) { // drops and reconnect to a redis server on uncaught exceptions RC::resetConnection(); parent::onNotSuccessfulTest($exception); } } ?>