Passed
Push — master ( 7c85b2...443a3c )
by Andrey
03:17
created

testItReturnsMessageProvidedToConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @link      http://horoshop.ua
4
 * @copyright Copyright (c) 2015-2018 Horoshop TM
5
 * @author    Andrey Telesh <[email protected]>
6
 */
7
8
namespace FtwSoft\NotificationChannels\Intercom\Tests;
9
10
11
use FtwSoft\NotificationChannels\Intercom\Exceptions\MessageIsNotCompleteException;
12
use FtwSoft\NotificationChannels\Intercom\IntercomMessage;
13
use PHPUnit\Framework\TestCase;
14
15
class MessageIsNotCompleteExceptionTest extends TestCase
16
{
17
18
    public function testItReturnsMessageProvidedToConstruct(): void
19
    {
20
        $message = IntercomMessage::create('TEST');
21
        $exception = new MessageIsNotCompleteException($message);
22
        $this->assertEquals($message, $exception->getIntercomMessage());
23
    }
24
25
}