Documentation

HipChatHandlerTest extends TestCase
in package

Tags
author

Rafael Dohms rafael@doh.ms

see
https://www.hipchat.com/docs/api

Table of Contents

$handler  : HipChatHandler
$res  : mixed
provideBatchRecords()  : mixed
provideLevelColors()  : mixed
testCreateWithTooLongName()  : mixed
testCreateWithTooLongNameV2()  : mixed
testHandleBatch()  : mixed
testRoomSpaces()  : mixed
testWriteContent()  : mixed
testWriteContentNotify()  : mixed
testWriteContentV1WithoutName()  : mixed
testWriteContentV2()  : mixed
testWriteContentV2Notify()  : mixed
testWriteContentV2WithoutName()  : mixed
testWriteCustomHostHeader()  : mixed
testWriteHeader()  : mixed
testWriteTruncatesLongMessage()  : mixed
testWriteV2()  : mixed
testWriteV2Notify()  : mixed
testWriteWithComplexMessage()  : mixed
testWriteWithErrorLevelsAndColors()  : mixed
getIdentityFormatter()  : FormatterInterface
getMultipleRecords()  : array<string|int, mixed>
getRecord()  : array<string|int, mixed>
createHandler()  : mixed

Properties

Methods

provideBatchRecords()

public provideBatchRecords() : mixed
Return values
mixed

provideLevelColors()

public provideLevelColors() : mixed
Return values
mixed

testCreateWithTooLongName()

public testCreateWithTooLongName() : mixed
Tags
expectedException

InvalidArgumentException

Return values
mixed

testCreateWithTooLongNameV2()

public testCreateWithTooLongNameV2() : mixed
Return values
mixed

testHandleBatch()

public testHandleBatch(mixed $records, mixed $expectedColor) : mixed
Parameters
$records : mixed
$expectedColor : mixed
Tags
dataProvider

provideBatchRecords

Return values
mixed

testWriteContent()

public testWriteContent(mixed $content) : mixed
Parameters
$content : mixed
Tags
depends

testWriteHeader

Return values
mixed

testWriteContentNotify()

public testWriteContentNotify(mixed $content) : mixed
Parameters
$content : mixed
Tags
depends

testWriteCustomHostHeader

Return values
mixed

testWriteContentV1WithoutName()

public testWriteContentV1WithoutName() : mixed
Return values
mixed

testWriteContentV2()

public testWriteContentV2(mixed $content) : mixed
Parameters
$content : mixed
Tags
depends

testWriteV2

Return values
mixed

testWriteContentV2Notify()

public testWriteContentV2Notify(mixed $content) : mixed
Parameters
$content : mixed
Tags
depends

testWriteV2Notify

Return values
mixed

testWriteContentV2WithoutName()

public testWriteContentV2WithoutName() : mixed
Return values
mixed

testWriteCustomHostHeader()

public testWriteCustomHostHeader() : mixed
Return values
mixed

testWriteTruncatesLongMessage()

public testWriteTruncatesLongMessage() : mixed
Return values
mixed

testWriteWithComplexMessage()

public testWriteWithComplexMessage() : mixed
Return values
mixed

testWriteWithErrorLevelsAndColors()

public testWriteWithErrorLevelsAndColors(mixed $level, mixed $expectedColor) : mixed
Parameters
$level : mixed
$expectedColor : mixed
Tags
dataProvider

provideLevelColors

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

createHandler()

private createHandler([mixed $token = 'myToken' ][, mixed $room = 'room1' ][, mixed $name = 'Monolog' ][, mixed $notify = false ][, mixed $host = 'api.hipchat.com' ][, mixed $version = 'v1' ]) : mixed
Parameters
$token : mixed = 'myToken'
$room : mixed = 'room1'
$name : mixed = 'Monolog'
$notify : mixed = false
$host : mixed = 'api.hipchat.com'
$version : mixed = 'v1'
Return values
mixed

Search results