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