Skip to content

Commit 0aff70a

Browse files
author
fso
committed
Add cursor support (tests)
1 parent 310f0a3 commit 0aff70a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/QueryBuilderTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -773,10 +773,8 @@ public function testCursor()
773773
$results = DB::collection('items')->orderBy('_id', 'asc')->cursor();
774774

775775
$this->assertInstanceOf(LazyCollection::class, $results);
776-
$i = 0;
777-
foreach ($results as $result) {
776+
foreach ($results as $i => $result) {
778777
$this->assertEquals($data[$i]['name'], $result['name']);
779-
$i++;
780778
}
781779
}
782780
}

0 commit comments

Comments
 (0)