mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 09:50:26 +02:00
Merge branch '1.x'
This commit is contained in:
@@ -88,6 +88,19 @@ class WebProcessorTest extends TestCase
|
||||
$this->assertSame(['url' => 'A', 'http_method' => 'C'], $record['extra']);
|
||||
}
|
||||
|
||||
public function testProcessorAddsOnlyRequestedExtraFieldsIncludingOptionalFields()
|
||||
{
|
||||
$server = array(
|
||||
'REQUEST_URI' => 'A',
|
||||
'UNIQUE_ID' => 'X',
|
||||
);
|
||||
|
||||
$processor = new WebProcessor($server, array('url'));
|
||||
$record = $processor($this->getRecord());
|
||||
|
||||
$this->assertSame(array('url' => 'A'), $record['extra']);
|
||||
}
|
||||
|
||||
public function testProcessorConfiguringOfExtraFields()
|
||||
{
|
||||
$server = [
|
||||
|
Reference in New Issue
Block a user