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

Exception will be thrown if ZendMonitorHandler is instantiated without having Zend Server installed.

This commit is contained in:
ChristianB
2013-01-31 12:16:16 +01:00
parent 83b84ff818
commit f0ba64ad4b
3 changed files with 35 additions and 36 deletions

View File

@@ -25,17 +25,7 @@ class ZendMonitorHandlerTest extends TestCase
}
/**
* @covers \Monolog\Handler\ZendMonitor::__construct
* @covers \Monolog\Handler\ZendMonitor::isZendServer
*/
public function testIsZendServerReturnsTrue()
{
$zendMonitor = new ZendMonitorHandler();
$this->assertTrue($zendMonitor->isZendServer());
}
/**
* @covers \Monolog\Handler\ZendMonitor::write
* @covers Monolog\Handler\ZendMonitorHandler::write
*/
public function testWrite()
{
@@ -69,6 +59,9 @@ class ZendMonitorHandlerTest extends TestCase
$zendMonitor->handle($record);
}
/**
* @covers Monolog\Handler\ZendMonitorHandler::getDefaultFormatter
*/
public function testGetDefaultFormatterReturnsNormalizerFormatter()
{
$zendMonitor = new ZendMonitorHandler();