Skip to content

Commit 807b985

Browse files
Resolve Circular dependency problem
1 parent 60de549 commit 807b985

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ContainerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ public function it_throw_exception_with_direct_circular_dependency()
145145
{
146146
$container = Container::getInstance();
147147

148+
$this->expectErrorMessage("Circular dependency.");
149+
$container->make(Test::class);
150+
148151
$this->expectErrorMessage("Circular dependency.");
149152
$container->make(A::class);
150153
}

0 commit comments

Comments
 (0)