Skip to content

Commit

Permalink
Adjust test showing faulty behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
axlon committed Nov 14, 2024
1 parent f2bb1dd commit 8d71206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Container/ResolvingCallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,18 @@ public function testResolvingCallbacksAreCallWhenRebindHappenForResolvedAbstract
$this->assertEquals(1, $callCounter);

$container->bind(ResolvingContractStub::class, ResolvingImplementationStubTwo::class);
$this->assertEquals(2, $callCounter);
$this->assertEquals(1, $callCounter);

$container->make(ResolvingImplementationStubTwo::class);
$this->assertEquals(3, $callCounter);
$this->assertEquals(2, $callCounter);

$container->bind(ResolvingContractStub::class, function () {
return new ResolvingImplementationStubTwo;
});
$this->assertEquals(4, $callCounter);
$this->assertEquals(2, $callCounter);

$container->make(ResolvingContractStub::class);
$this->assertEquals(5, $callCounter);
$this->assertEquals(3, $callCounter);
}

public function testRebindingDoesNotAffectMultipleResolvingCallbacks()
Expand Down

0 comments on commit 8d71206

Please sign in to comment.