mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-28 15:29:52 +02:00
CS fixes
This commit is contained in:
@@ -89,7 +89,6 @@ class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$message = json_decode($formatter->format($record), true);
|
||||
|
||||
|
||||
$message_array = $message['@fields'];
|
||||
|
||||
$this->assertArrayHasKey('ctxt_from', $message_array);
|
||||
@@ -99,7 +98,6 @@ class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
|
||||
$formatter = new LogstashFormatter('test', null, null, 'CTX');
|
||||
$message = json_decode($formatter->format($record), true);
|
||||
|
||||
|
||||
$message_array = $message['@fields'];
|
||||
|
||||
$this->assertArrayHasKey('CTXfrom', $message_array);
|
||||
|
@@ -69,7 +69,7 @@ class AbstractProcessingHandlerTest extends TestCase
|
||||
$handledRecord = null;
|
||||
$handler->expects($this->once())
|
||||
->method('write')
|
||||
->will($this->returnCallback(function($record) use (&$handledRecord){
|
||||
->will($this->returnCallback(function($record) use (&$handledRecord) {
|
||||
$handledRecord = $record;
|
||||
}))
|
||||
;
|
||||
|
@@ -23,4 +23,3 @@ class MockMessagePublisher extends MessagePublisher
|
||||
|
||||
public $lastMessage = null;
|
||||
}
|
||||
|
||||
|
@@ -196,7 +196,7 @@ class LoggerTest extends \PHPUnit_Framework_TestCase
|
||||
;
|
||||
$logger->pushHandler($handler);
|
||||
$that = $this;
|
||||
$logger->pushProcessor(function($record) use ($that){
|
||||
$logger->pushProcessor(function($record) use ($that) {
|
||||
$that->fail('The processor should not be called');
|
||||
});
|
||||
$logger->addAlert('test');
|
||||
|
Reference in New Issue
Block a user