mirror of
https://github.com/predis/predis.git
synced 2026-09-12 03:17:22 +00:00
Force the test suite to use the 2.2 server profile for now.
This commit is contained in:
@@ -19,6 +19,7 @@ if (!function_exists('array_union')) {
|
||||
}
|
||||
|
||||
class RC {
|
||||
const SERVER_VERSION = '2.2';
|
||||
const SERVER_HOST = '127.0.0.1';
|
||||
const SERVER_PORT = 6379;
|
||||
const DEFAULT_DATABASE = 15;
|
||||
@@ -47,7 +48,7 @@ class RC {
|
||||
}
|
||||
|
||||
private static function createConnection() {
|
||||
$serverProfile = Predis\Profiles\ServerProfile::get('dev');
|
||||
$serverProfile = Predis\Profiles\ServerProfile::get(self::SERVER_VERSION);
|
||||
$connection = new Predis\Client(RC::getConnectionArguments(), $serverProfile);
|
||||
$connection->connect();
|
||||
$connection->select(RC::DEFAULT_DATABASE);
|
||||
|
||||
Reference in New Issue
Block a user