ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SlackbotHandlerTest.php
Go to the documentation of this file.
1
<?
php
2
3
/*
4
* This file is part of the Monolog package.
5
*
6
* (c) Jordi Boggiano <j.boggiano@seld.be>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Monolog\Handler
;
13
14
use
Monolog\TestCase
;
15
use
Monolog\Logger
;
16
22
class
SlackbotHandlerTest
extends
TestCase
23
{
27
public
function
testConstructorMinimal
()
28
{
29
$handler
=
new
SlackbotHandler
(
'test-team'
,
'test-token'
,
'test-channel'
);
30
$this->assertInstanceOf(
'Monolog\Handler\AbstractProcessingHandler'
,
$handler
);
31
}
32
36
public
function
testConstructorFull
()
37
{
38
$handler
=
new
SlackbotHandler
(
39
'test-team'
,
40
'test-token'
,
41
'test-channel'
,
42
Logger::DEBUG
,
43
false
44
);
45
$this->assertInstanceOf(
'Monolog\Handler\AbstractProcessingHandler'
,
$handler
);
46
}
47
}
Monolog\Handler
Definition:
AbstractHandler.php:12
Monolog\Logger\DEBUG
const DEBUG
Detailed debug information.
Definition:
Logger.php:33
Monolog\Handler\SlackbotHandlerTest\testConstructorMinimal
testConstructorMinimal()
::__construct
Definition:
SlackbotHandlerTest.php:27
TestCase
Logger
Monolog\Handler\SlackbotHandlerTest
Definition:
SlackbotHandlerTest.php:22
Monolog\Handler\SlackbotHandler
Sends notifications through Slack's Slackbot.
Definition:
SlackbotHandler.php:22
Monolog\Handler\SlackbotHandlerTest\testConstructorFull
testConstructorFull()
::__construct
Definition:
SlackbotHandlerTest.php:36
php
Monolog\TestCase
Definition:
TestCase.php:14
$handler
$handler
Definition:
resumelogout.php:11
libs
composer
vendor
monolog
monolog
tests
Monolog
Handler
SlackbotHandlerTest.php
Generated on Thu Jan 16 2025 19:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)