diff --git a/test/PredisClientFeatures.php b/test/PredisClientFeatures.php new file mode 100644 index 00000000..4c254649 --- /dev/null +++ b/test/PredisClientFeatures.php @@ -0,0 +1,24 @@ +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); + } +} +?> \ No newline at end of file