2
0
Jordi Boggiano 13 жил өмнө
parent
commit
f5cb46eefc

+ 4 - 1
tests/Monolog/Handler/PushoverHandlerTest.php

@@ -85,7 +85,7 @@ class PushoverHandlerTest extends TestCase
         $this->res = fopen('php://memory', 'a');
         $this->handler = $this->getMock(
             '\Monolog\Handler\PushoverHandler',
-            array('fsockopen', 'streamSetTimeout'),
+            array('fsockopen', 'streamSetTimeout', 'closeSocket'),
             $constructorArgs
         );
 
@@ -99,6 +99,9 @@ class PushoverHandlerTest extends TestCase
         $this->handler->expects($this->any())
             ->method('streamSetTimeout')
             ->will($this->returnValue(true));
+        $this->handler->expects($this->any())
+            ->method('closeSocket')
+            ->will($this->returnValue(true));
 
         $this->handler->setFormatter($this->getIdentityFormatter());
     }