SlackRecordTest
extends TestCase
in package
Tags
Table of Contents
- $jsonPrettyPrintFlag : mixed
- dataGetAttachmentColor() : mixed
- dataStringify() : array<string|int, mixed>
- testAddsChannel() : mixed
- testAddsCustomUsername() : mixed
- testAddsFallbackAndTextToAttachment() : mixed
- testAddsIcon() : mixed
- testAddsLongAttachmentWithContextAndExtra() : mixed
- testAddsLongAttachmentWithoutContextAndExtra() : mixed
- testAddsOneAttachment() : mixed
- testAddsShortAttachmentWithContextAndExtra() : mixed
- testAddsShortAttachmentWithoutContextAndExtra() : mixed
- testAddsTimestampToAttachment() : mixed
- testAttachmentsNotPresentIfNoAttachment() : mixed
- testContextHasException() : mixed
- testExcludeExtraAndContextFields() : mixed
- testGetAttachmentColor() : mixed
- testMapsLevelToColorAttachmentColor() : mixed
- testNoIcon() : mixed
- testNoUsernameByDefault() : mixed
- testStringify() : mixed
- testTextEqualsFormatterOutput() : mixed
- testTextEqualsMessageIfNoAttachment() : mixed
- getIdentityFormatter() : FormatterInterface
- getMultipleRecords() : array<string|int, mixed>
- getRecord() : array<string|int, mixed>
- setUp() : mixed
Properties
$jsonPrettyPrintFlag
private
mixed
$jsonPrettyPrintFlag
Methods
dataGetAttachmentColor()
public
dataGetAttachmentColor() : mixed
Return values
mixed —dataStringify()
public
dataStringify() : array<string|int, mixed>
Return values
array<string|int, mixed> —testAddsChannel()
public
testAddsChannel() : mixed
Return values
mixed —testAddsCustomUsername()
public
testAddsCustomUsername() : mixed
Return values
mixed —testAddsFallbackAndTextToAttachment()
public
testAddsFallbackAndTextToAttachment() : mixed
Return values
mixed —testAddsIcon()
public
testAddsIcon() : mixed
Return values
mixed —testAddsLongAttachmentWithContextAndExtra()
public
testAddsLongAttachmentWithContextAndExtra() : mixed
Return values
mixed —testAddsLongAttachmentWithoutContextAndExtra()
public
testAddsLongAttachmentWithoutContextAndExtra() : mixed
Return values
mixed —testAddsOneAttachment()
public
testAddsOneAttachment() : mixed
Return values
mixed —testAddsShortAttachmentWithContextAndExtra()
public
testAddsShortAttachmentWithContextAndExtra() : mixed
Return values
mixed —testAddsShortAttachmentWithoutContextAndExtra()
public
testAddsShortAttachmentWithoutContextAndExtra() : mixed
Return values
mixed —testAddsTimestampToAttachment()
public
testAddsTimestampToAttachment() : mixed
Return values
mixed —testAttachmentsNotPresentIfNoAttachment()
public
testAttachmentsNotPresentIfNoAttachment() : mixed
Return values
mixed —testContextHasException()
public
testContextHasException() : mixed
Return values
mixed —testExcludeExtraAndContextFields()
public
testExcludeExtraAndContextFields() : mixed
Return values
mixed —testGetAttachmentColor()
public
testGetAttachmentColor(int $logLevel, string $expectedColour) : mixed
Parameters
- $logLevel : int
- $expectedColour : string
-
RGB hex color or name of Slack color
Tags
Return values
mixed —testMapsLevelToColorAttachmentColor()
public
testMapsLevelToColorAttachmentColor() : mixed
Return values
mixed —testNoIcon()
public
testNoIcon() : mixed
Return values
mixed —testNoUsernameByDefault()
public
testNoUsernameByDefault() : mixed
Return values
mixed —testStringify()
public
testStringify(mixed $fields, mixed $expectedResult) : mixed
Parameters
- $fields : mixed
- $expectedResult : mixed
Tags
Return values
mixed —testTextEqualsFormatterOutput()
public
testTextEqualsFormatterOutput() : mixed
Return values
mixed —testTextEqualsMessageIfNoAttachment()
public
testTextEqualsMessageIfNoAttachment() : 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
setUp()
protected
setUp() : mixed