Skip to content

Commit

Permalink
Add DependencyProviderNotFoundExceptionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jul 24, 2023
1 parent e04a658 commit 73e3acb
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

declare(strict_types=1);

namespace GacelaTest\Unit\Framework\ClassResolver\DependencyProvider;

use Gacela\Framework\ClassResolver\DependencyProvider\DependencyProviderNotFoundException;
use PHPUnit\Framework\TestCase;

final class DependencyProviderNotFoundExceptionTest extends TestCase
{
public function test_exception_message(): void
{
$exception = new DependencyProviderNotFoundException($this);

$expected = <<<EOT
ClassResolver Exception
Cannot resolve the `DependencyProvider` for your module `DependencyProvider`
You can fix this by adding the missing `DependencyProvider` to your module.
E.g. `\GacelaTest\Unit\Framework\ClassResolver\DependencyProvider`
EOT;

self::assertSame($expected, $exception->getMessage());
}
}

0 comments on commit 73e3acb

Please sign in to comment.