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