23 'REQUEST_METHOD' =>
'C',
24 'HTTP_REFERER' =>
'D',
31 $this->assertEquals(
$server[
'REQUEST_URI'], $record[
'extra'][
'url']);
32 $this->assertEquals(
$server[
'REMOTE_ADDR'], $record[
'extra'][
'ip']);
33 $this->assertEquals(
$server[
'REQUEST_METHOD'], $record[
'extra'][
'http_method']);
34 $this->assertEquals(
$server[
'HTTP_REFERER'], $record[
'extra'][
'referrer']);
35 $this->assertEquals(
$server[
'SERVER_NAME'], $record[
'extra'][
'server']);
36 $this->assertEquals(
$server[
'UNIQUE_ID'], $record[
'extra'][
'unique_id']);
43 'REQUEST_METHOD' =>
'C',
47 $this->assertEmpty($record[
'extra']);
55 'REQUEST_METHOD' =>
'C',
60 $this->assertNull($record[
'extra'][
'referrer']);
68 'REQUEST_METHOD' =>
'C',
73 $this->assertFalse(isset($record[
'extra'][
'unique_id']));
81 'REQUEST_METHOD' =>
'C',
88 $this->assertSame(
array(
'url' =>
'A',
'http_method' =>
'C'), $record[
'extra']);
96 'REQUEST_METHOD' =>
'C',
101 $record = $processor($this->
getRecord());
103 $this->assertSame(
array(
'url' =>
'B'), $record[
'extra']);
testProcessorDoesNotAddUniqueIdIfNotPresent()
testProcessorAddsOnlyRequestedExtraFields()
Injects url/method and remote IP of the current web request in all records.
getRecord($level=Logger::WARNING, $message='test', $context=array())
testInvalidData()
UnexpectedValueException
Create styles array
The data for the language used.
testProcessorDoNothingIfNoRequestUri()
testProcessorReturnNullIfNoHttpReferer()
testProcessorConfiguringOfExtraFields()