TelegramMessageFormatterTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 12
rs 10
eloc 5

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFormatMessage() 0 7 1
1
<?php
2
3
namespace Tests\Unit\Services\Messengers\Clients\Telegram;
4
5
use Orchestra\Testbench\TestCase;
6
use Exception;
7
use Skater4\LaravelSentryNotifications\Services\Messengers\Clients\Telegram\TelegramMessageFormatter;
8
9
class TelegramMessageFormatterTest extends TestCase
10
{
11
    /**
12
     * @return void
13
     */
14
    public function testFormatMessage()
15
    {
16
        $formatter = new TelegramMessageFormatter();
17
        $exception = new Exception('Test exception message');
18
        $message = $formatter->getExceptionMessage($exception);
19
20
        $this->assertStringContainsString('Test exception message', $message);
21
    }
22
}
23