소스 검색

skip test instead of throw an error

pomaxa 13 년 전
부모
커밋
6a86fa4444
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/Monolog/Handler/AmqpHandlerTest.php

+ 1 - 1
tests/Monolog/Handler/AmqpHandlerTest.php

@@ -26,7 +26,7 @@ class AmqpHandlerTest extends TestCase
         }
 
         if (!class_exists('AMQPChannel')) {
-            throw new \Exception(' Please update AMQP to version >= 1');
+            $this->markTestSkipped("Please update AMQP to version >= 1");
         }
     }