ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
setUp () | |
testWriteHeader () | |
testWriteContent () | |
testWriteContentUsesFormatterIfProvided () | |
testWriteContentWithEmoji () | |
testWriteContentWithColors ($level, $expectedColor) | |
provideLevelColors More... | |
testWriteContentWithPlainTextMessage () | |
provideLevelColors () | |
Private Member Functions | |
createHandler ($token='myToken', $channel='channel1', $username='Monolog', $useAttachment=true, $iconEmoji=null, $useShortAttachment=false, $includeExtra=false) | |
Private Attributes | |
$res | |
$handler | |
Additional Inherited Members | |
Protected Member Functions inherited from Monolog\TestCase | |
getRecord ($level=Logger::WARNING, $message='test', $context=array()) | |
getMultipleRecords () | |
getIdentityFormatter () | |
Definition at line 23 of file SlackHandlerTest.php.
|
private |
Definition at line 129 of file SlackHandlerTest.php.
References PHPMailer\PHPMailer\$token, Monolog\Logger\DEBUG, and Monolog\TestCase\getIdentityFormatter().
Referenced by Monolog\Handler\SlackHandlerTest\testWriteContent(), Monolog\Handler\SlackHandlerTest\testWriteContentUsesFormatterIfProvided(), Monolog\Handler\SlackHandlerTest\testWriteContentWithColors(), Monolog\Handler\SlackHandlerTest\testWriteContentWithEmoji(), Monolog\Handler\SlackHandlerTest\testWriteContentWithPlainTextMessage(), and Monolog\Handler\SlackHandlerTest\testWriteHeader().
Monolog\Handler\SlackHandlerTest::provideLevelColors | ( | ) |
Definition at line 115 of file SlackHandlerTest.php.
References Monolog\Logger\ALERT, Monolog\Handler\Slack\SlackRecord\COLOR_DANGER, Monolog\Handler\Slack\SlackRecord\COLOR_DEFAULT, Monolog\Handler\Slack\SlackRecord\COLOR_GOOD, Monolog\Handler\Slack\SlackRecord\COLOR_WARNING, Monolog\Logger\CRITICAL, Monolog\Logger\DEBUG, Monolog\Logger\EMERGENCY, Monolog\Logger\ERROR, Monolog\Logger\INFO, Monolog\Logger\NOTICE, and Monolog\Logger\WARNING.
Monolog\Handler\SlackHandlerTest::setUp | ( | ) |
Definition at line 35 of file SlackHandlerTest.php.
Monolog\Handler\SlackHandlerTest::testWriteContent | ( | ) |
Definition at line 52 of file SlackHandlerTest.php.
References Monolog\Handler\SlackHandlerTest\createHandler(), Monolog\Logger\CRITICAL, and Monolog\TestCase\getRecord().
Monolog\Handler\SlackHandlerTest::testWriteContentUsesFormatterIfProvided | ( | ) |
Definition at line 65 of file SlackHandlerTest.php.
References Monolog\Handler\SlackHandlerTest\createHandler(), Monolog\Logger\CRITICAL, and Monolog\TestCase\getRecord().
Monolog\Handler\SlackHandlerTest::testWriteContentWithColors | ( | $level, | |
$expectedColor | |||
) |
provideLevelColors
Definition at line 95 of file SlackHandlerTest.php.
References Monolog\Handler\SlackHandlerTest\createHandler(), and Monolog\TestCase\getRecord().
Monolog\Handler\SlackHandlerTest::testWriteContentWithEmoji | ( | ) |
Definition at line 82 of file SlackHandlerTest.php.
References Monolog\Handler\SlackHandlerTest\createHandler(), Monolog\Logger\CRITICAL, and Monolog\TestCase\getRecord().
Monolog\Handler\SlackHandlerTest::testWriteContentWithPlainTextMessage | ( | ) |
Definition at line 105 of file SlackHandlerTest.php.
References Monolog\Handler\SlackHandlerTest\createHandler(), Monolog\Logger\CRITICAL, and Monolog\TestCase\getRecord().
Monolog\Handler\SlackHandlerTest::testWriteHeader | ( | ) |
Definition at line 42 of file SlackHandlerTest.php.
References Monolog\Handler\SlackHandlerTest\createHandler(), Monolog\Logger\CRITICAL, and Monolog\TestCase\getRecord().
|
private |
Definition at line 33 of file SlackHandlerTest.php.
|
private |
Definition at line 28 of file SlackHandlerTest.php.