NonKernelTestCaseTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A must_extend_kernel_test_case() 0 6 1
1
<?php
2
3
namespace Zenstruck\Messenger\Test\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use Zenstruck\Messenger\Test\InteractsWithMessenger;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
final class NonKernelTestCaseTest extends TestCase
12
{
13
    use InteractsWithMessenger;
14
15
    /**
16
     * @test
17
     */
18
    public function must_extend_kernel_test_case(): void
19
    {
20
        $this->expectException(\LogicException::class);
21
        $this->expectExceptionMessage('trait can only be used with');
22
23
        $this->messenger();
24
    }
25
}
26