|
@@ 90-100 (lines=11) @@
|
| 87 |
|
$this->assertContains($record['message'], $ravenClient->lastData['message']); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
public function testTag() |
| 91 |
|
{ |
| 92 |
|
$ravenClient = $this->getRavenClient(); |
| 93 |
|
$handler = $this->getHandler($ravenClient); |
| 94 |
|
|
| 95 |
|
$tags = [1, 2, 'foo']; |
| 96 |
|
$record = $this->getRecord(Logger::INFO, 'test', ['tags' => $tags]); |
| 97 |
|
$handler->handle($record); |
| 98 |
|
|
| 99 |
|
$this->assertEquals($tags, $ravenClient->lastData['tags']); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
public function testExtraParameters() |
| 103 |
|
{ |
|
@@ 125-135 (lines=11) @@
|
| 122 |
|
); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
public function testFingerprint() |
| 126 |
|
{ |
| 127 |
|
$ravenClient = $this->getRavenClient(); |
| 128 |
|
$handler = $this->getHandler($ravenClient); |
| 129 |
|
|
| 130 |
|
$fingerprint = ['{{ default }}', 'other value']; |
| 131 |
|
$record = $this->getRecord(Logger::INFO, 'test', ['fingerprint' => $fingerprint]); |
| 132 |
|
$handler->handle($record); |
| 133 |
|
|
| 134 |
|
$this->assertEquals($fingerprint, $ravenClient->lastData['fingerprint']); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
public function testUserContext() |
| 138 |
|
{ |