Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5c949c1

Browse filesBrowse files
committed
minor #52463 [Cache] fix tests (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Cache] fix tests | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 3e01925 fix tests
2 parents a432b12 + 3e01925 commit 5c949c1
Copy full SHA for 5c949c1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Cache/Tests/Adapter/RedisAdapterSentinelTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Tests/Adapter/RedisAdapterSentinelTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function setUpBeforeClass(): void
3939
public function testInvalidDSNHasBothClusterAndSentinel()
4040
{
4141
$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.');
4343
$dsn = 'redis:?host[redis1]&host[redis2]&host[redis3]&redis_cluster=1&redis_sentinel=mymaster';
4444
RedisAdapter::createConnection($dsn);
4545
}
@@ -49,7 +49,7 @@ public function testExceptionMessageWhenFailingToRetrieveMasterInformation()
4949
$hosts = getenv('REDIS_SENTINEL_HOSTS');
5050
$dsn = 'redis:?host['.str_replace(' ', ']&host[', $hosts).']';
5151
$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".');
5353
AbstractAdapter::createConnection($dsn, ['redis_sentinel' => 'invalid-masterset-name']);
5454
}
5555
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.