mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-12 08:04:02 +02:00
Optimize ChromePHP/FirePHP to skip header generation when they are disabled, refs #360
This commit is contained in:
@@ -22,6 +22,7 @@ class FirePHPHandlerTest extends TestCase
|
||||
public function setUp()
|
||||
{
|
||||
TestFirePHPHandler::reset();
|
||||
$_SERVER['HTTP_USER_AGENT'] = 'Monolog Test; FirePHP/1.0';
|
||||
}
|
||||
|
||||
public function testHeaders()
|
||||
@@ -79,6 +80,7 @@ class TestFirePHPHandler extends FirePHPHandler
|
||||
public static function reset()
|
||||
{
|
||||
self::$initialized = false;
|
||||
self::$sendHeaders = true;
|
||||
self::$messageIndex = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user