blob: a0ad3aa2e87e7c5c883933803b428c9ec39d11c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 2f9337cb9bbebdf7334a7e58a6dc132eca013268 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
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()
{
|