mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Fix raven tests
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~4.5",
|
||||
"graylog2/gelf-php": "~1.0",
|
||||
"raven/raven": "~0.11",
|
||||
"raven/raven": "^0.13",
|
||||
"ruflin/elastica": ">=0.90 <3.0",
|
||||
"doctrine/couchdb": "~1.0@dev",
|
||||
"aws/aws-sdk-php": "^2.4.9",
|
||||
|
@@ -117,7 +117,7 @@ class RavenHandlerTest extends TestCase
|
||||
$ravenClient->user_context(array('id' => 'test_user_id'));
|
||||
// handle context
|
||||
$handler->handle($recordWithContext);
|
||||
$this->assertEquals($user, $ravenClient->lastData['sentry.interfaces.User']);
|
||||
$this->assertEquals($user, $ravenClient->lastData['user']);
|
||||
|
||||
// check to see if its reset
|
||||
$handler->handle($recordWithNoContext);
|
||||
@@ -127,7 +127,7 @@ class RavenHandlerTest extends TestCase
|
||||
// handle with null context
|
||||
$ravenClient->user_context(null);
|
||||
$handler->handle($recordWithContext);
|
||||
$this->assertEquals($user, $ravenClient->lastData['sentry.interfaces.User']);
|
||||
$this->assertEquals($user, $ravenClient->lastData['user']);
|
||||
|
||||
// check to see if its reset
|
||||
$handler->handle($recordWithNoContext);
|
||||
|
Reference in New Issue
Block a user