public function testCreate() { $id = new \MongoId(); $ref = \MongoDBRef::create('foo', $id); $this->assertSame(['$ref' => 'foo', '$id' => $id], $ref); }