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

DependencyProviderNotFoundExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_exception_message() 0 13 1
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