NewRelicHandlerTest
extends TestCase
in package
Table of Contents
- $appname : mixed
- $customParameters : mixed
- $transactionName : mixed
- setUp() : mixed
- testTheAppNameCanBeInjectedFromtheConstructor() : mixed
- testTheAppNameCanBeOverriddenFromEachLog() : mixed
- testTheAppNameIsNullByDefault() : mixed
- testThehandlerCanAddContextParamsToTheNewRelicTrace() : mixed
- testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace() : mixed
- testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace() : mixed
- testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace() : mixed
- testThehandlerCanAddExtraParamsToTheNewRelicTrace() : mixed
- testThehandlerCanHandleTheRecord() : mixed
- testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter() : mixed
- testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded() : mixed
- testTheTransactionNameCanBeInjectedFromTheConstructor() : mixed
- testTheTransactionNameCanBeOverriddenFromEachLog() : mixed
- testTheTransactionNameIsNullByDefault() : mixed
- getIdentityFormatter() : FormatterInterface
- getMultipleRecords() : array<string|int, mixed>
- getRecord() : array<string|int, mixed>
Properties
$appname
public
static mixed
$appname
$customParameters
public
static mixed
$customParameters
$transactionName
public
static mixed
$transactionName
Methods
setUp()
public
setUp() : mixed
Return values
mixed —testTheAppNameCanBeInjectedFromtheConstructor()
public
testTheAppNameCanBeInjectedFromtheConstructor() : mixed
Return values
mixed —testTheAppNameCanBeOverriddenFromEachLog()
public
testTheAppNameCanBeOverriddenFromEachLog() : mixed
Return values
mixed —testTheAppNameIsNullByDefault()
public
testTheAppNameIsNullByDefault() : mixed
Return values
mixed —testThehandlerCanAddContextParamsToTheNewRelicTrace()
public
testThehandlerCanAddContextParamsToTheNewRelicTrace() : mixed
Return values
mixed —testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace()
public
testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace() : mixed
Return values
mixed —testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace()
public
testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace() : mixed
Return values
mixed —testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace()
public
testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace() : mixed
Return values
mixed —testThehandlerCanAddExtraParamsToTheNewRelicTrace()
public
testThehandlerCanAddExtraParamsToTheNewRelicTrace() : mixed
Return values
mixed —testThehandlerCanHandleTheRecord()
public
testThehandlerCanHandleTheRecord() : mixed
Return values
mixed —testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter()
public
testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter() : mixed
Return values
mixed —testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
public
testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded() : mixed
Tags
Return values
mixed —testTheTransactionNameCanBeInjectedFromTheConstructor()
public
testTheTransactionNameCanBeInjectedFromTheConstructor() : mixed
Return values
mixed —testTheTransactionNameCanBeOverriddenFromEachLog()
public
testTheTransactionNameCanBeOverriddenFromEachLog() : mixed
Return values
mixed —testTheTransactionNameIsNullByDefault()
public
testTheTransactionNameIsNullByDefault() : 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