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() {