Przeglądaj źródła

avoid test suites failed with Fatal error when sockets extension is not available

Laurent Laville 11 lat temu
rodzic
commit
0d1a23e7fc

+ 3 - 0
tests/Monolog/Handler/SyslogUdpHandlerTest.php

@@ -2,6 +2,9 @@
 
 namespace Monolog\Handler;
 
+/**
+ * @requires extension sockets
+ */
 class SyslogUdpHandlerTest extends \PHPUnit_Framework_TestCase
 {
     /**

+ 3 - 0
tests/Monolog/Handler/UdpSocketTest.php

@@ -4,6 +4,9 @@ namespace Monolog\Handler;
 
 use Monolog\TestCase;
 
+/**
+ * @requires extension sockets
+ */
 class UdpSocketTest extends TestCase
 {
     public function testWeDoNotSplitShortMessages()