Skip to content

Commit

Permalink
Resolve Circular dependency problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-samir907 committed Aug 27, 2021
1 parent 60de549 commit 807b985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public function it_throw_exception_with_direct_circular_dependency()
{
$container = Container::getInstance();

$this->expectErrorMessage("Circular dependency.");
$container->make(Test::class);

$this->expectErrorMessage("Circular dependency.");
$container->make(A::class);
}
Expand Down

0 comments on commit 807b985

Please sign in to comment.