Skip to content

Commit a8de144

Browse files
committed
tests: Latest Predis Version
1 parent 32cb185 commit a8de144

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,8 @@ test_integrations_phpredis5: global_test_run_dependencies
12811281
$(call run_tests_debug,tests/Integrations/PHPRedis/V5)
12821282
$(eval TEST_EXTRA_INI=)
12831283
$(eval TEST_EXTRA_ENV=)
1284+
test_integrations_predis_1: global_test_run_dependencies tests/Integrations/Predis/V1/composer.lock-php$(PHP_MAJOR_MINOR)
1285+
$(call run_tests_debug,tests/Integrations/Predis/V1)
12841286
test_integrations_predis_latest: global_test_run_dependencies tests/Integrations/Predis/Latest/composer.lock-php$(PHP_MAJOR_MINOR)
12851287
$(call run_tests_debug,tests/Integrations/Predis/Latest)
12861288
test_integrations_frankenphp: global_test_run_dependencies

tests/Integrations/Predis/Latest/PredisTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function testPredisClusterConnect()
166166
$connectionString = "tcp://{$this->host}";
167167

168168
$traces = $this->isolateTracer(function () use ($connectionString) {
169-
$client = new \Predis\Client([$connectionString, $connectionString, $connectionString]);
169+
$client = new \Predis\Client([$connectionString, $connectionString, $connectionString], ['cluster' => 'redis']);
170170
$client->connect();
171171
});
172172

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace DDTrace\Tests\Integrations\Predis\V1;
4+
5+
use DDTrace\Tag;
6+
use DDTrace\Tests\Common\IntegrationTestCase;
7+
use DDTrace\Tests\Common\SpanAssertion;
8+
use Predis\Configuration\Options;
9+
10+
class PredisTest extends \DDTrace\Tests\Integrations\Predis\Latest\PredisTest
11+
{
12+
//
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"predis/predis": "^1"
4+
}
5+
}

0 commit comments

Comments
 (0)