must_extend_kernel_test_case()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 1
b 0
f 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