Skip to content

Commit 6bdecdb

Browse files
committed
Relax assertion in AggregateFunctionalTest
1 parent 31299e9 commit 6bdecdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Collection/CrudSpec/AggregateFunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testAggregateWithMultipleStages()
3737
);
3838

3939
// Use iterator_to_array() here since aggregate() may return an ArrayIterator
40-
$this->assertSame($expected, iterator_to_array($cursor));
40+
$this->assertEquals($expected, iterator_to_array($cursor));
4141
}
4242

4343
public function testAggregateWithOut()
@@ -64,7 +64,7 @@ public function testAggregateWithOut()
6464
array('_id' => 3, 'x' => 33),
6565
);
6666

67-
$this->assertSame($expected, $outputCollection->find()->toArray());
67+
$this->assertEquals($expected, $outputCollection->find()->toArray());
6868

6969
// Manually clean up our output collection
7070
$this->dropCollectionIfItExists($outputCollection);

0 commit comments

Comments
 (0)