54 $this->assertEquals(
'debug', $this->reportedExceptionArguments[
'payload'][
'level']);
59 $this->rollbarNotifier = $this->getMockBuilder(
'RollbarNotifier')
60 ->setMethods(array(
'report_message',
'report_exception',
'flush'))
65 $this->rollbarNotifier
66 ->expects($this->any())
67 ->method(
'report_exception')
68 ->willReturnCallback(
function ($exception,
$context, $payload) use ($that) {
69 $that->reportedExceptionArguments = compact(
'exception',
'context',
'payload');
81 'exception' => $exception ?:
new Exception()
createExceptionRecord($level=Logger::DEBUG, $message='test', $exception=null)
const DEBUG
Detailed debug information.
$reportedExceptionArguments
getRecord($level=Logger::WARNING, $message='test', $context=array())
catch(Exception $e) $message
testExceptionLogLevel()
When reporting exceptions to Rollbar the level has to be set in the payload data. ...
setupRollbarNotifierMock()