Completed
Push — master ( 4671d6...c5be3c )
by Andrey
03:04
created

MessageIsNotCompleteExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace FtwSoft\NotificationChannels\Intercom\Tests;
4
5
use FtwSoft\NotificationChannels\Intercom\Exceptions\MessageIsNotCompleteException;
6
use FtwSoft\NotificationChannels\Intercom\IntercomMessage;
7
use PHPUnit\Framework\TestCase;
8
9
class MessageIsNotCompleteExceptionTest extends TestCase
10
{
11
    public function testItReturnsMessageProvidedToConstruct(): void
12
    {
13
        $message = IntercomMessage::create('TEST');
14
        $exception = new MessageIsNotCompleteException($message);
15
        $this->assertEquals($message, $exception->getIntercomMessage());
16
    }
17
}
18