public function testGetWithNonExistingDocument() { $db = $this->getDatabase(); $this->assertNull(\MongoDBRef::get($db, ['$ref' => 'test', '$id' => 'foo'])); }