Jelajahi Sumber

skip test instead of throw an error

pomaxa 13 tahun lalu
induk
melakukan
6a86fa4444
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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");
         }
     }