소스 검색

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

Remi Collet 9 년 전
부모
커밋
57a7d5d3e6
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      tests/Predis/Command/PubSubSubscribeByPatternTest.php
  2. 1 1
      tests/Predis/Command/PubSubSubscribeTest.php

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