Commit aa124d05 authored by Derick Rethans's avatar Derick Rethans Committed by Jeremy Mikola

PHPC-118: Expect documents as objects (new default type)

Also use assertEquals(), since assertSame() tests for object identity.
parent f3e9e1e9
......@@ -29,9 +29,9 @@ class CollectionFunctionalTest extends FunctionalTestCase
'sort' => array('x' => -1),
);
$expected = array('_id' => 3, 'x' => 33);
$expected = (object) array('_id' => 3, 'x' => 33);
$this->assertSame($expected, $this->collection->findOne($filter, $options));
$this->assertEquals($expected, $this->collection->findOne($filter, $options));
}
/**
......
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