From 2f9337cb9bbebdf7334a7e58a6dc132eca013268 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 18 Mar 2021 11:08:37 +0100 Subject: [PATCH] fix test expectation for redis 6.2 --- tests/Predis/Command/ConnectionSelectTest.php | 2 +- tests/Predis/Command/KeyMoveTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Predis/Command/ConnectionSelectTest.php b/tests/Predis/Command/ConnectionSelectTest.php index ac44e64bf..f2bcadd0a 100644 --- a/tests/Predis/Command/ConnectionSelectTest.php +++ b/tests/Predis/Command/ConnectionSelectTest.php @@ -83,7 +83,7 @@ public function testThrowsExceptionOnUnexpectedDatabaseRange() /** * @group connected * @expectedException \Predis\Response\ServerException - * @expectedExceptionMessage ERR invalid DB index + * @expectedExceptionMessageRegExp /ERR (invalid DB index|value is not)/ */ public function testThrowsExceptionOnUnexpectedDatabaseName() { diff --git a/tests/Predis/Command/KeyMoveTest.php b/tests/Predis/Command/KeyMoveTest.php index c47a84ca5..ee16af41a 100644 --- a/tests/Predis/Command/KeyMoveTest.php +++ b/tests/Predis/Command/KeyMoveTest.php @@ -82,7 +82,7 @@ public function testMovesKeysToDifferentDatabases() /** * @group connected * @expectedException \Predis\Response\ServerException - * @expectedExceptionMessage ERR index out of range + * @expectedExceptionMessageRegEx /ERR.*out of range/ */ public function testThrowsExceptionOnInvalidDatabases() {