1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 23:54:04 +02:00

Added a test for Tags

This commit is contained in:
ipsq
2014-03-31 20:40:02 +02:00
parent 5c10c2c395
commit ef0a44f8e0

View File

@@ -73,6 +73,18 @@ class RavenHandlerTest extends TestCase
$this->assertContains($record['message'], $ravenClient->lastData['message']);
}
public function testTag()
{
$ravenClient = $this->getRavenClient();
$handler = $this->getHandler($ravenClient);
$tags = array('tags' => array(1, 2, 'foo'));
$record = $this->getRecord(Logger::INFO, "test", $tags);
$handler->handle($record);
$this->assertEquals($record['tags'], $tags);
}
public function testException()
{
$ravenClient = $this->getRavenClient();