From e0cc102064e022687950e9f309aa123e35c1e2f3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 18 Mar 2021 11:14:17 +0100 Subject: fix test failure with redis 6.2 using patch from https://github.com/predis/predis/pull/686 --- php-nrk-Predis-redis62.patch | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 php-nrk-Predis-redis62.patch (limited to 'php-nrk-Predis-redis62.patch') diff --git a/php-nrk-Predis-redis62.patch b/php-nrk-Predis-redis62.patch new file mode 100644 index 0000000..a0ad3aa --- /dev/null +++ b/php-nrk-Predis-redis62.patch @@ -0,0 +1,36 @@ +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() + { -- cgit