File tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Cache/Tests/Adapter
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static function setUpBeforeClass(): void
39
39
public function testInvalidDSNHasBothClusterAndSentinel ()
40
40
{
41
41
$ this ->expectException (InvalidArgumentException::class);
42
- $ this ->expectExceptionMessage ('Cannot use both "redis_cluster" and "redis_sentinel" at the same time: ' );
42
+ $ this ->expectExceptionMessage ('Cannot use both "redis_cluster" and "redis_sentinel" at the same time. ' );
43
43
$ dsn = 'redis:?host[redis1]&host[redis2]&host[redis3]&redis_cluster=1&redis_sentinel=mymaster ' ;
44
44
RedisAdapter::createConnection ($ dsn );
45
45
}
@@ -49,7 +49,7 @@ public function testExceptionMessageWhenFailingToRetrieveMasterInformation()
49
49
$ hosts = getenv ('REDIS_SENTINEL_HOSTS ' );
50
50
$ dsn = 'redis:?host[ ' .str_replace (' ' , ']&host[ ' , $ hosts ).'] ' ;
51
51
$ this ->expectException (InvalidArgumentException::class);
52
- $ this ->expectExceptionMessage ('Failed to retrieve master information from sentinel "invalid-masterset-name" and dsn " ' . $ dsn . ' " . ' );
52
+ $ this ->expectExceptionMessage ('Failed to retrieve master information from sentinel "invalid-masterset-name". ' );
53
53
AbstractAdapter::createConnection ($ dsn , ['redis_sentinel ' => 'invalid-masterset-name ' ]);
54
54
}
55
55
}
You can’t perform that action at this time.
0 commit comments