public function testCreateDBRef() { $collection = $this->getCollection(); $reference = $collection->createDBRef(['_id' => 'foo']); $this->assertSame(['$ref' => 'test', '$id' => 'foo'], $reference); }