@@ -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()
{
@@ -145,7 +145,7 @@ class PubSubSubscribeTest extends PredisCommandTestCase
public function testCannotSendOtherCommandsAfterSubscribe()