瀏覽代碼

Test suite: PredisClientFeaturesTestSuite and same signature of PHPUnit_Framework_TestCase::onNotSuccessfulTest.

Daniele Alessandri 15 年之前
父節點
當前提交
f1890c93a6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/PredisClientFeatures.php

+ 2 - 2
test/PredisClientFeatures.php

@@ -5,7 +5,7 @@ require_once 'PHPUnit/Framework.php';
 require_once 'PredisShared.php';
 require_once 'PredisShared.php';
 require_once '../lib/Predis_Compatibility.php';
 require_once '../lib/Predis_Compatibility.php';
 
 
-class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
+class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
     public $redis;
     public $redis;
 
 
     protected function setUp() { 
     protected function setUp() { 
@@ -16,7 +16,7 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
     protected function tearDown() { 
     protected function tearDown() { 
     }
     }
 
 
-    protected function onNotSuccessfulTest($exception) {
+    protected function onNotSuccessfulTest(Exception $exception) {
         // drops and reconnect to a redis server on uncaught exceptions
         // drops and reconnect to a redis server on uncaught exceptions
         RC::resetConnection();
         RC::resetConnection();
         parent::onNotSuccessfulTest($exception);
         parent::onNotSuccessfulTest($exception);