1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 02:10:22 +02:00
This commit is contained in:
Jordi Boggiano
2013-01-06 21:43:53 +01:00
parent 176cb2a354
commit 04f41cd661
2 changed files with 12 additions and 14 deletions

View File

@@ -79,15 +79,14 @@ class PushoverHandlerTest extends TestCase
$this->assertRegexp('/message=' . $expectedMessage . '&title/', $content);
}
private function createHandler($token = 'myToken', $user = 'myUser', $title = null)
private function createHandler($token = 'myToken', $user = 'myUser', $title = 'Monolog')
{
$constructArray = array($token, $user);
if($title != null) {
$constructArray[2] = $title;
}
$constructorArgs = array($token, $user, $title);
$this->res = fopen('php://memory', 'a');
$this->handler = $this->getMock(
'\Monolog\Handler\PushoverHandler', array('fsockopen', 'streamSetTimeout'), $constructArray
'\Monolog\Handler\PushoverHandler',
array('fsockopen', 'streamSetTimeout'),
$constructorArgs
);
$reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
@@ -103,5 +102,4 @@ class PushoverHandlerTest extends TestCase
$this->handler->setFormatter($this->getIdentityFormatter());
}
}
}