Skip to content

Commit

Permalink
removing unused code in loops in Collection test class
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Cornutt committed Oct 29, 2014
1 parent 9b81923 commit 9e343d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Modler/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public function testCollectionIteratable()
$this->collection->add(array('foo' => 'bar'));
$this->collection->add(array('baz' => 'test'));

$count = 0;
foreach ($this->collection as $index => $value) {
$count++;
$count = array();
foreach ($this->collection as $value) {
$count[] = $value;
}
$this->assertEquals(2, $count);
$this->assertEquals(2, count($count));
}

/**
Expand Down

0 comments on commit 9e343d2

Please sign in to comment.