Passed
Push — main ( b768a1...56d495 )
by Chema
03:08
created

test_exception_message()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 10
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 15
rs 9.9332
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Unit\Framework\ClassResolver\DocBlockService;
6
7
use Gacela\Framework\ClassResolver\DocBlockService\DocBlockServiceNotFoundException;
8
use GacelaTest\Unit\FakeModule\FakeFacade;
9
use PHPUnit\Framework\TestCase;
10
11
final class DocBlockServiceNotFoundExceptionTest extends TestCase
12
{
13
    public function test_exception_message(): void
14
    {
15
        $facade = new FakeFacade();
16
17
        $exception = new DocBlockServiceNotFoundException($facade, 'ResolvableType');
18
19
        $expected = <<<EOT
20
ClassResolver Exception
21
Cannot resolve the `ResolvableType` for your module `FakeModule`
22
You can fix this by adding the missing `ResolvableType` to your module.
23
E.g. `\GacelaTest\Unit\FakeModule\ResolvableType`
24
25
EOT;
26
27
        self::assertSame($expected, $exception->getMessage());
28
    }
29
}
30