Commit a29c7839 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-414: Iterate compared collections fully GridFS spec tests

Use MultipleIterator::MIT_NEED_ANY to ensure iteration doesn't stop prematurely if one collection contains fewer documents.
parent b50e1435
......@@ -90,7 +90,7 @@ class SpecFunctionalTest extends FunctionalTestCase
*/
private function assertEquivalentCollections($expectedCollection, $actualCollection, $actualResult)
{
$mi = new MultipleIterator;
$mi = new MultipleIterator(MultipleIterator::MIT_NEED_ANY);
$mi->attachIterator(new IteratorIterator($expectedCollection->find()));
$mi->attachIterator(new IteratorIterator($actualCollection->find()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment