From f02b5494c7794708cb191a03756587535cb7402e Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Wed, 10 Mar 2010 11:47:41 +0100 Subject: [PATCH] New set of tests for client-specific features. --- test/PredisClientFeatures.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/PredisClientFeatures.php 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