scratch – Blame information for rev 115

Subversion Repositories:
Rev:
Rev Author Line No. Line
115 office 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  
17 /**
18 * @author Haralan Dobrev <hkdobrev@gmail.com>
19 * @see https://slack.com/apps/A0F81R8ET-slackbot
20 * @coversDefaultClass Monolog\Handler\SlackbotHandler
21 */
22 class SlackbotHandlerTest extends TestCase
23 {
24 /**
25 * @covers ::__construct
26 */
27 public function testConstructorMinimal()
28 {
29 $handler = new SlackbotHandler('test-team', 'test-token', 'test-channel');
30 $this->assertInstanceOf('Monolog\Handler\AbstractProcessingHandler', $handler);
31 }
32  
33 /**
34 * @covers ::__construct
35 */
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 }