Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
wazsmwazsm committed Jul 17, 2018
1 parent 42312ea commit 43f04b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/IOCContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ public function testGetDiParams()

public function testGetInstance()
{
$foo = new Foo();
$foz = new Foz();
$expect = new Bar($foo, $foz);
// DI
$result = IOCContainerFake::getInstance(Bar::class);

$this->assertEquals($expect, $result);
$this->assertEquals(1, $result->a);
$this->assertEquals(4, $result->b);

// DI nesting
$result = IOCContainerFake::getInstance(Brr::class);

$this->assertEquals(6, $result->a);
Expand Down

0 comments on commit 43f04b2

Please sign in to comment.