1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-16 18:14:02 +02:00

Merge pull request #347 from ipsq/master

Added tags for Raven
This commit is contained in:
Jordi Boggiano
2014-04-04 17:17:39 +02:00
4 changed files with 84 additions and 0 deletions

View File

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