|
59 | 59 | * @covers \MacFJA\RediSearch\Redis\Client\ClientFacade
|
60 | 60 | * @covers \MacFJA\RediSearch\Redis\Client\CredisClient
|
61 | 61 | * @covers \MacFJA\RediSearch\Redis\Client\PredisClient
|
| 62 | + * @covers \MacFJA\RediSearch\Redis\Client\ReactRedisClient |
62 | 63 | * @covers \MacFJA\RediSearch\Redis\Client\RedisentClient
|
63 | 64 | * @covers \MacFJA\RediSearch\Redis\Client\RediskaClient
|
64 | 65 | * @covers \MacFJA\RediSearch\Redis\Client\TinyRedisClient
|
@@ -277,24 +278,26 @@ public function dataProvider(string $testName): array
|
277 | 278 | {
|
278 | 279 | if (in_array($testName, ['testIntegration', 'testAddDocument'])) {
|
279 | 280 | return [
|
280 |
| - [static function () { return Client\PredisClient::make(new \Predis\Client(['scheme' => 'tcp', 'host' => 'localhost', 'port' => '16379', 'db' => 0])); }], |
281 |
| - [static function () { return Client\RediskaClient::make(new Rediska(['servers' => [['host' => 'localhost', 'port' => '16379', 'db' => 0]]])); }], |
282 |
| - [static function () { return Client\RedisentClient::make(new \redisent\Redis('redis://localhost:16379')); }], |
283 |
| - [static function () { return Client\CheprasovRedisClient::make(new \RedisClient\Client\Version\RedisClient6x0(['server' => 'localhost:16379', 'database' => 0])); }], |
284 |
| - [static function () { return Client\AmpRedisClient::make(new \Amp\Redis\Redis(new RemoteExecutor(Config::fromUri('redis://localhost:16379')))); }], |
285 |
| - [static function () { return Client\TinyRedisClient::make(new TinyRedisClient('localhost:16379')); }], |
286 |
| - [static function () { return Client\CredisClient::make(new Credis_Client('localhost', 16379, null, '', 0)); }], |
| 281 | + 'Predis' => [static function () { return Client\PredisClient::make(new \Predis\Client(['scheme' => 'tcp', 'host' => 'localhost', 'port' => '16379', 'db' => 0])); }], |
| 282 | + 'Rediska' => [static function () { return Client\RediskaClient::make(new Rediska(['servers' => [['host' => 'localhost', 'port' => '16379', 'db' => 0]]])); }], |
| 283 | + 'Redisent' => [static function () { return Client\RedisentClient::make(new \redisent\Redis('redis://localhost:16379')); }], |
| 284 | + 'CheprasovRedis' => [static function () { return Client\CheprasovRedisClient::make(new \RedisClient\Client\Version\RedisClient6x0(['server' => 'localhost:16379', 'database' => 0])); }], |
| 285 | + 'AmpRedis' => [static function () { return Client\AmpRedisClient::make(new \Amp\Redis\Redis(new RemoteExecutor(Config::fromUri('redis://localhost:16379')))); }], |
| 286 | + 'TinyRedis' => [static function () { return Client\TinyRedisClient::make(new TinyRedisClient('localhost:16379')); }], |
| 287 | + 'Credis' => [static function () { return Client\CredisClient::make(new Credis_Client('localhost', 16379, null, '', 0)); }], |
| 288 | + 'ReactRedis' => [static function () { return Client\ReactRedisClient::make((new \Clue\React\Redis\Factory())->createClient('localhost:16379')); }], |
287 | 289 | ];
|
288 | 290 | }
|
289 | 291 |
|
290 | 292 | return [
|
291 |
| - [Client\PredisClient::class, static function () { return new \Predis\Client(['scheme' => 'tcp', 'host' => 'localhost', 'port' => '16379', 'db' => 0]); }], |
292 |
| - [Client\RediskaClient::class, static function () { return new Rediska(['servers' => [['host' => 'localhost', 'port' => '16379', 'db' => 0]]]); }], |
293 |
| - [Client\RedisentClient::class, static function () { return new \redisent\Redis('redis://localhost:16379'); }], |
294 |
| - [Client\CheprasovRedisClient::class, static function () { return new \RedisClient\Client\Version\RedisClient6x0(['server' => 'localhost:16379', 'database' => 0]); }], |
295 |
| - [Client\AmpRedisClient::class, static function () { return new \Amp\Redis\Redis(new RemoteExecutor(Config::fromUri('redis://localhost:16379'))); }], |
296 |
| - [Client\TinyRedisClient::class, static function () { return new TinyRedisClient('localhost:16379'); }], |
297 |
| - [Client\CredisClient::class, static function () { return new Credis_Client('localhost', 16379, null, '', 0); }], |
| 293 | + 'Predis' => [Client\PredisClient::class, static function () { return new \Predis\Client(['scheme' => 'tcp', 'host' => 'localhost', 'port' => '16379', 'db' => 0]); }], |
| 294 | + 'Rediska' => [Client\RediskaClient::class, static function () { return new Rediska(['servers' => [['host' => 'localhost', 'port' => '16379', 'db' => 0]]]); }], |
| 295 | + 'Redisent' => [Client\RedisentClient::class, static function () { return new \redisent\Redis('redis://localhost:16379'); }], |
| 296 | + 'CheprasovRedis' => [Client\CheprasovRedisClient::class, static function () { return new \RedisClient\Client\Version\RedisClient6x0(['server' => 'localhost:16379', 'database' => 0]); }], |
| 297 | + 'AmpRedis' => [Client\AmpRedisClient::class, static function () { return new \Amp\Redis\Redis(new RemoteExecutor(Config::fromUri('redis://localhost:16379'))); }], |
| 298 | + 'TinyRedis' => [Client\TinyRedisClient::class, static function () { return new TinyRedisClient('localhost:16379'); }], |
| 299 | + 'Credis' => [Client\CredisClient::class, static function () { return new Credis_Client('localhost', 16379, null, '', 0); }], |
| 300 | + 'ReactRedis' => [Client\ReactRedisClient::class, static function () { return (new \Clue\React\Redis\Factory())->createClient('localhost:16379'); }], |
298 | 301 | ];
|
299 | 302 | }
|
300 | 303 |
|
|
0 commit comments