diff --git a/Makefile b/Makefile index 4a374832ee..35e8edf1d9 100644 --- a/Makefile +++ b/Makefile @@ -560,6 +560,7 @@ TEST_INTEGRATIONS_70 := \ test_integrations_phpredis3 \ test_integrations_phpredis4 \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_sqlsrv @@ -603,6 +604,7 @@ TEST_INTEGRATIONS_71 := \ test_integrations_phpredis3 \ test_integrations_phpredis4 \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_sqlsrv \ test_opentracing_10 @@ -657,6 +659,7 @@ TEST_INTEGRATIONS_72 := \ test_integrations_phpredis3 \ test_integrations_phpredis4 \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_sqlsrv \ test_opentracing_10 @@ -716,6 +719,7 @@ TEST_INTEGRATIONS_73 :=\ test_integrations_phpredis3 \ test_integrations_phpredis4 \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_sqlsrv \ test_opentracing_10 @@ -776,6 +780,7 @@ TEST_INTEGRATIONS_74 := \ test_integrations_phpredis3 \ test_integrations_phpredis4 \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_roadrunner \ test_integrations_sqlsrv \ @@ -841,6 +846,7 @@ TEST_INTEGRATIONS_80 := \ test_integrations_guzzle_latest \ test_integrations_pcntl \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_sqlsrv \ test_integrations_swoole_5 \ @@ -895,6 +901,7 @@ TEST_INTEGRATIONS_81 := \ test_integrations_pdo \ test_integrations_elasticsearch7 \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_sqlsrv \ test_integrations_swoole_5 \ @@ -951,6 +958,7 @@ TEST_INTEGRATIONS_82 := \ test_integrations_elasticsearch7 \ test_integrations_elasticsearch_latest \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_frankenphp \ test_integrations_roadrunner \ @@ -1014,6 +1022,7 @@ TEST_INTEGRATIONS_83 := \ test_integrations_elasticsearch7 \ test_integrations_elasticsearch_latest \ test_integrations_phpredis5 \ + test_integrations_predis_1 \ test_integrations_predis_latest \ test_integrations_frankenphp \ test_integrations_roadrunner \ @@ -1281,6 +1290,8 @@ test_integrations_phpredis5: global_test_run_dependencies $(call run_tests_debug,tests/Integrations/PHPRedis/V5) $(eval TEST_EXTRA_INI=) $(eval TEST_EXTRA_ENV=) +test_integrations_predis_1: global_test_run_dependencies tests/Integrations/Predis/V1/composer.lock-php$(PHP_MAJOR_MINOR) + $(call run_tests_debug,tests/Integrations/Predis/V1) test_integrations_predis_latest: global_test_run_dependencies tests/Integrations/Predis/Latest/composer.lock-php$(PHP_MAJOR_MINOR) $(call run_tests_debug,tests/Integrations/Predis/Latest) test_integrations_frankenphp: global_test_run_dependencies diff --git a/tests/Integrations/Predis/Latest/PredisTest.php b/tests/Integrations/Predis/Latest/PredisTest.php index da0e0a119b..5863201d3b 100644 --- a/tests/Integrations/Predis/Latest/PredisTest.php +++ b/tests/Integrations/Predis/Latest/PredisTest.php @@ -1,17 +1,17 @@ host}"; $traces = $this->isolateTracer(function () use ($connectionString) { - $client = new \Predis\Client([$connectionString, $connectionString, $connectionString]); + $client = new \Predis\Client([$connectionString, $connectionString, $connectionString], ['cluster' => 'redis']); $client->connect(); }); diff --git a/tests/Integrations/Predis/V1/PredisTest.php b/tests/Integrations/Predis/V1/PredisTest.php new file mode 100644 index 0000000000..0c469bcd0f --- /dev/null +++ b/tests/Integrations/Predis/V1/PredisTest.php @@ -0,0 +1,7 @@ +