Skip to content

Commit

Permalink
Added testResolvedInstances method to ContainerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadreza committed Oct 22, 2024
1 parent 4b5ce19 commit 64cefba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Container/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,17 @@ public function testResolvedResolvesAliasToBindingNameBeforeChecking()
$this->assertTrue($container->resolved('foo'));
}

public function testResolvedInstances()
{
$container = new Container;
$container->instance('ConcreteStub', function () {
//
});
$container->make('ConcreteStub');

$this->assertTrue($container->resolved('ConcreteStub'));
}

public function testGetAlias()
{
$container = new Container;
Expand Down

0 comments on commit 64cefba

Please sign in to comment.