Documentation

RollbarHandlerTest extends TestCase
in package

Tags
author

Erik Johansson erik.pm.johansson@gmail.com

see
https://rollbar.com/docs/notifier/rollbar-php/
coversDefaultClass

Monolog\Handler\RollbarHandler

Table of Contents

$reportedExceptionArguments  : array<string|int, mixed>
$rollbarNotifier  : PHPUnit_Framework_MockObject_MockObject
testExceptionLogLevel()  : mixed
When reporting exceptions to Rollbar the level has to be set in the payload data
getIdentityFormatter()  : FormatterInterface
getMultipleRecords()  : array<string|int, mixed>
getRecord()  : array<string|int, mixed>
setUp()  : mixed
createExceptionRecord()  : mixed
createHandler()  : mixed
setupRollbarNotifierMock()  : mixed

Properties

$reportedExceptionArguments

public array<string|int, mixed> $reportedExceptionArguments = null

$rollbarNotifier

private PHPUnit_Framework_MockObject_MockObject $rollbarNotifier

Methods

testExceptionLogLevel()

When reporting exceptions to Rollbar the level has to be set in the payload data

public testExceptionLogLevel() : mixed
Return values
mixed

getIdentityFormatter()

protected getIdentityFormatter() : FormatterInterface
Return values
FormatterInterface

getMultipleRecords()

protected getMultipleRecords() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRecord()

protected getRecord([mixed $level = Logger::WARNING ][, mixed $message = 'test' ][, mixed $context = array() ]) : array<string|int, mixed>
Parameters
$level : mixed = Logger::WARNING
$message : mixed = 'test'
$context : mixed = array()
Return values
array<string|int, mixed>

Record

createExceptionRecord()

private createExceptionRecord([mixed $level = Logger::DEBUG ][, mixed $message = 'test' ][, mixed $exception = null ]) : mixed
Parameters
$level : mixed = Logger::DEBUG
$message : mixed = 'test'
$exception : mixed = null
Return values
mixed

setupRollbarNotifierMock()

private setupRollbarNotifierMock() : mixed
Return values
mixed

Search results