Pārlūkot izejas kodu

fix tests, list of allowed commands have changed (redis 3.0.6)

Remi Collet 9 gadi atpakaļ
vecāks
revīzija
57a7d5d3e6

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

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