fix for Redis 6 error message

This commit is contained in:
Till Krüss
2021-04-04 10:16:44 -07:00
committed by GitHub
parent 0e4e8f41cc
commit be9d477564
+1 -1
View File
@@ -87,7 +87,7 @@ class SELECT_Test extends PredisCommandTestCase
public function testThrowsExceptionOnUnexpectedDatabaseName(): void
{
$this->expectException('Predis\Response\ServerException');
$this->expectExceptionMessage('ERR invalid DB index');
$this->expectExceptionMessageMatches('/ERR.*(invalid DB index|value is not an integer or out of range)/');
$redis = $this->getClient();