1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-30 18:00:17 +02:00

Added some tests

This commit is contained in:
Christophe Coevoet
2011-08-29 15:00:28 +02:00
parent 5267b03b1e
commit 10e5ecd409
5 changed files with 109 additions and 4 deletions

View File

@@ -29,6 +29,17 @@ class WebProcessorTest extends TestCase
$this->assertEquals($server['REQUEST_METHOD'], $record['extra']['http_method']);
}
public function testProcessorDoNothingIfNoRequestUri()
{
$server = array(
'REMOTE_ADDR' => 'B',
'REQUEST_METHOD' => 'C',
);
$processor = new WebProcessor($server);
$record = $processor($this->getRecord());
$this->assertEmpty($record['extra']);
}
/**
* @expectedException UnexpectedValueException
*/