瀏覽代碼

Merge branch 'issue-tests' into v1.0

Daniele Alessandri 9 年之前
父節點
當前提交
6596460a57

+ 1 - 1
tests/Predis/Command/PubSubSubscribeByPatternTest.php

@@ -145,7 +145,7 @@ class PubSubSubscribeByPatternTest extends PredisCommandTestCase
     /**
     /**
      * @group connected
      * @group connected
      * @expectedException \Predis\Response\ServerException
      * @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()
     public function testCannotSendOtherCommandsAfterPsubscribe()
     {
     {

+ 1 - 1
tests/Predis/Command/PubSubSubscribeTest.php

@@ -145,7 +145,7 @@ class PubSubSubscribeTest extends PredisCommandTestCase
     /**
     /**
      * @group connected
      * @group connected
      * @expectedException \Predis\Response\ServerException
      * @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()
     public function testCannotSendOtherCommandsAfterSubscribe()
     {
     {