From f378faaf228b89546962f5f58f5ec183516f5c34 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 28 Dec 2015 10:34:24 +0100 Subject: [PATCH] fix tests, list of allowed commands have changed (redis 3.0.6) --- tests/Predis/Command/PubSubSubscribeByPatternTest.php | 2 +- tests/Predis/Command/PubSubSubscribeTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Predis/Command/PubSubSubscribeByPatternTest.php b/tests/Predis/Command/PubSubSubscribeByPatternTest.php index ec8d5350..21dfc499 100644 --- a/tests/Predis/Command/PubSubSubscribeByPatternTest.php +++ b/tests/Predis/Command/PubSubSubscribeByPatternTest.php @@ -145,7 +145,7 @@ class PubSubSubscribeByPatternTest extends PredisCommandTestCase /** * @group connected * @expectedException \Predis\Response\ServerException - * @expectedExceptionMessage ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context + * @expectedExceptionMessageRegExp /ERR only .* allowed in this context/ */ public function testCannotSendOtherCommandsAfterPsubscribe() { diff --git a/tests/Predis/Command/PubSubSubscribeTest.php b/tests/Predis/Command/PubSubSubscribeTest.php index 4155c1e5..2500f629 100644 --- a/tests/Predis/Command/PubSubSubscribeTest.php +++ b/tests/Predis/Command/PubSubSubscribeTest.php @@ -145,7 +145,7 @@ class PubSubSubscribeTest extends PredisCommandTestCase /** * @group connected * @expectedException \Predis\Response\ServerException - * @expectedExceptionMessage ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context + * @expectedExceptionMessageRegExp /ERR only .* allowed in this context/ */ public function testCannotSendOtherCommandsAfterSubscribe() {