JsonFormatterTest
extends TestCase
in package
Table of Contents
- testConstruct() : mixed
- testDefFormatWithException() : mixed
- testDefFormatWithPreviousException() : mixed
- testDefFormatWithThrowable() : mixed
- testFormat() : mixed
- testFormatBatch() : mixed
- testFormatBatchNewlines() : mixed
- testNormalizeHandleLargeArrays() : mixed
- testNormalizeHandleLargeArraysWithExactly1000Items() : mixed
- getIdentityFormatter() : FormatterInterface
- getMultipleRecords() : array<string|int, mixed>
- getRecord() : array<string|int, mixed>
- formatException() : string
- formatExceptionFilePathWithLine() : string
- formatRecordWithExceptionInContext() : string
Methods
testConstruct()
public
testConstruct() : mixed
Tags
Return values
mixed —testDefFormatWithException()
public
testDefFormatWithException() : mixed
Return values
mixed —testDefFormatWithPreviousException()
public
testDefFormatWithPreviousException() : mixed
Return values
mixed —testDefFormatWithThrowable()
public
testDefFormatWithThrowable() : mixed
Return values
mixed —testFormat()
public
testFormat() : mixed
Tags
Return values
mixed —testFormatBatch()
public
testFormatBatch() : mixed
Tags
Return values
mixed —testFormatBatchNewlines()
public
testFormatBatchNewlines() : mixed
Tags
Return values
mixed —testNormalizeHandleLargeArrays()
public
testNormalizeHandleLargeArrays() : mixed
Return values
mixed —testNormalizeHandleLargeArraysWithExactly1000Items()
public
testNormalizeHandleLargeArraysWithExactly1000Items() : 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
formatException()
private
formatException(Exception|Throwable $exception[, null|string $previous = null ]) : string
Parameters
- $exception : Exception|Throwable
- $previous : null|string = null
Return values
string —formatExceptionFilePathWithLine()
private
formatExceptionFilePathWithLine(Exception|Throwable $exception) : string
Parameters
- $exception : Exception|Throwable
Return values
string —formatRecordWithExceptionInContext()
private
formatRecordWithExceptionInContext(JsonFormatter $formatter, Exception|Throwable $exception) : string
Parameters
- $formatter : JsonFormatter
- $exception : Exception|Throwable