mirror of
https://github.com/predis/predis.git
synced 2026-09-15 21:07:08 +00:00
Test suite: PredisClientFeaturesTestSuite and same signature of PHPUnit_Framework_TestCase::onNotSuccessfulTest.
This commit is contained in:
@@ -5,7 +5,7 @@ require_once 'PHPUnit/Framework.php';
|
||||
require_once 'PredisShared.php';
|
||||
require_once '../lib/Predis_Compatibility.php';
|
||||
|
||||
class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
public $redis;
|
||||
|
||||
protected function setUp() {
|
||||
@@ -16,7 +16,7 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
protected function tearDown() {
|
||||
}
|
||||
|
||||
protected function onNotSuccessfulTest($exception) {
|
||||
protected function onNotSuccessfulTest(Exception $exception) {
|
||||
// drops and reconnect to a redis server on uncaught exceptions
|
||||
RC::resetConnection();
|
||||
parent::onNotSuccessfulTest($exception);
|
||||
|
||||
Reference in New Issue
Block a user