1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-02 11:20:31 +02:00

Fix test suite

This commit is contained in:
Jordi Boggiano
2013-01-22 11:05:37 +01:00
parent dae7e03ae3
commit f5cb46eefc

View File

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