public function testReadNearest(array $tags = null) { $this->client->readNearest(array(array('dc' => 'kyiv'), array('dc' => 'lviv'))); $this->assertEquals(array('type' => \MongoClient::RP_NEAREST, 'tagsets' => array(array('dc' => 'kyiv'), array('dc' => 'lviv'))), $this->client->getReadPreference()); }