Skip to content

Commit aa124d0

Browse files
derickrjmikola
authored andcommitted
PHPC-118: Expect documents as objects (new default type)
Also use assertEquals(), since assertSame() tests for object identity.
1 parent f3e9e1e commit aa124d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Collection/CollectionFunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public function testFindOne()
2929
'sort' => array('x' => -1),
3030
);
3131

32-
$expected = array('_id' => 3, 'x' => 33);
32+
$expected = (object) array('_id' => 3, 'x' => 33);
3333

34-
$this->assertSame($expected, $this->collection->findOne($filter, $options));
34+
$this->assertEquals($expected, $this->collection->findOne($filter, $options));
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)