Passed
Push — test-DocBlockServiceNotFoundEx... ( e04a65...73e3ac )
by Chema
03:14
created

test_exception_message()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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