Skip to content

Commit

Permalink
Merge pull request #2 from Rayne/fixed-unit-tests
Browse files Browse the repository at this point in the history
Fixed the unit tests which didn't guarantee identical instances
  • Loading branch information
moufmouf committed Apr 11, 2016
2 parents 20e5649 + d92dfa8 commit 50eab14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/PicotainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testGet()
"instance" => function () { return "value"; },
]);

$this->assertEquals('value', $container->get('instance'));
$this->assertSame('value', $container->get('instance'));
}

/**
Expand All @@ -39,7 +39,7 @@ public function testDelegateContainer()
"instance2" => function ($container) { return $container->get('instance'); },
], $container);

$this->assertEquals('value', $container2->get('instance2'));
$this->assertSame('value', $container2->get('instance2'));
}

public function testOneInstanceOnly()
Expand All @@ -51,7 +51,7 @@ public function testOneInstanceOnly()
$instance1 = $container->get('instance');
$instance2 = $container->get('instance');

$this->assertEquals($instance1, $instance2);
$this->assertSame($instance1, $instance2);
}

public function testHas()
Expand Down

0 comments on commit 50eab14

Please sign in to comment.