Passed
Push — main ( 53ac6e...e37cca )
by Chema
01:30 queued 15s
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
nc 1
nop 0
dl 0
loc 15
rs 9.9332
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Unit\Framework\ClassResolver\Provider;
6
7
use Gacela\Framework\ClassResolver\Provider\ProviderNotFoundException;
8
use GacelaTest\Unit\FakeModule\FakeFacade;
9
use PHPUnit\Framework\TestCase;
10
11
final class ProviderNotFoundExceptionTest extends TestCase
12
{
13
    public function test_exception_message(): void
14
    {
15
        $facade = new FakeFacade();
16
17
        $exception = new ProviderNotFoundException($facade);
18
19
        $expected = <<<EOT
20
ClassResolver Exception
21
Cannot resolve the `Provider` for your module `FakeModule`
22
You can fix this by adding the missing `Provider` to your module.
23
E.g. `\GacelaTest\Unit\FakeModule\Provider`
24
25
EOT;
26
27
        self::assertSame($expected, $exception->getMessage());
28
    }
29
}
30