Commit 26078fe2 authored by Jeremy Mikola's avatar Jeremy Mikola

Relax assertion in AggregateFunctionalTest

parent fb7cb1b6
...@@ -37,7 +37,7 @@ class AggregateFunctionalTest extends FunctionalTestCase ...@@ -37,7 +37,7 @@ class AggregateFunctionalTest extends FunctionalTestCase
); );
// Use iterator_to_array() here since aggregate() may return an ArrayIterator // Use iterator_to_array() here since aggregate() may return an ArrayIterator
$this->assertSame($expected, iterator_to_array($cursor)); $this->assertEquals($expected, iterator_to_array($cursor));
} }
public function testAggregateWithOut() public function testAggregateWithOut()
...@@ -64,7 +64,7 @@ class AggregateFunctionalTest extends FunctionalTestCase ...@@ -64,7 +64,7 @@ class AggregateFunctionalTest extends FunctionalTestCase
array('_id' => 3, 'x' => 33), array('_id' => 3, 'x' => 33),
); );
$this->assertSame($expected, $outputCollection->find()->toArray()); $this->assertEquals($expected, $outputCollection->find()->toArray());
// Manually clean up our output collection // Manually clean up our output collection
$this->dropCollectionIfItExists($outputCollection); $this->dropCollectionIfItExists($outputCollection);
......
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