Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix test suite

  • Loading branch information...
commit f5cb46eefc64ce418c3bb5dfce6d3b6d11e6b9cc 1 parent dae7e03
@Seldaek authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/Monolog/Handler/PushoverHandlerTest.php
View
5 tests/Monolog/Handler/PushoverHandlerTest.php
@@ -85,7 +85,7 @@ private function createHandler($token = 'myToken', $user = 'myUser', $title = 'M
$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 @@ private function createHandler($token = 'myToken', $user = 'myUser', $title = 'M
$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());
}
Please sign in to comment.
Something went wrong with that request. Please try again.