Skip to content

Commit

Permalink
Merge pull request #4 from malarzm/improve-clear-test
Browse files Browse the repository at this point in the history
Add assertion for contains call after clearing
  • Loading branch information
malarzm committed Mar 4, 2016
2 parents 22e003a + db53abe commit 9b85821
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Malarzm/Tests/Collections/ObjectSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ public function testClearClearingHashes()
$coll = new ObjectSet([ $o ]);
$this->assertCount(1, $coll);
$coll->clear();
$this->assertFalse($coll->contains($o));
$this->assertCount(0, $coll);
$coll->add($o);
$this->assertCount(1, $coll);
$this->assertTrue($coll->contains($o));
}

public function testConstructRegistersObjects()
Expand Down

0 comments on commit 9b85821

Please sign in to comment.