1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 10:20:14 +02:00

Rename referer->referrer and server_name->server, update changelog

This commit is contained in:
Jordi Boggiano
2012-04-22 11:26:54 +02:00
parent b4c12e9f2c
commit 3c4bc178cc
3 changed files with 7 additions and 6 deletions

View File

@@ -30,8 +30,8 @@ class WebProcessorTest extends TestCase
$this->assertEquals($server['REQUEST_URI'], $record['extra']['url']);
$this->assertEquals($server['REMOTE_ADDR'], $record['extra']['ip']);
$this->assertEquals($server['REQUEST_METHOD'], $record['extra']['http_method']);
$this->assertEquals($server['HTTP_REFERER'], $record['extra']['referer']);
$this->assertEquals($server['SERVER_NAME'], $record['extra']['server_name']);
$this->assertEquals($server['HTTP_REFERER'], $record['extra']['referrer']);
$this->assertEquals($server['SERVER_NAME'], $record['extra']['server']);
}
public function testProcessorDoNothingIfNoRequestUri()
@@ -55,7 +55,7 @@ class WebProcessorTest extends TestCase
);
$processor = new WebProcessor($server);
$record = $processor($this->getRecord());
$this->assertNull($record['extra']['referer']);
$this->assertNull($record['extra']['referrer']);
}
/**