瀏覽代碼

Force the test suite to load the server profile for Redis edge versions (development unstable).

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

+ 2 - 1
test/PredisShared.php

@@ -25,7 +25,8 @@ class RC {
     private static $_connection;
 
     private static function createConnection() {
-        $connection = new Predis\Client(array('host' => RC::SERVER_HOST, 'port' => RC::SERVER_PORT));
+        $serverProfile = new Predis\RedisServer__Futures();
+        $connection = new Predis\Client(array('host' => RC::SERVER_HOST, 'port' => RC::SERVER_PORT), $serverProfile);
         $connection->connect();
         $connection->selectDatabase(RC::DEFAULT_DATABASE);
         return $connection;