|
@@ -0,0 +1,24 @@
|
|
|
|
+<?php
|
|
|
|
+define('I_AM_AWARE_OF_THE_DESTRUCTIVE_POWER_OF_THIS_TEST_SUITE', false);
|
|
|
|
+
|
|
|
|
+require_once 'PHPUnit/Framework.php';
|
|
|
|
+require_once 'PredisShared.php';
|
|
|
|
+
|
|
|
|
+class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
|
|
|
+ public $redis;
|
|
|
|
+
|
|
|
|
+ protected function setUp() {
|
|
|
|
+ $this->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);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+?>
|