public function testReadPrimaryOnly() { $this->client->readPrimaryOnly(); $this->assertEquals(array('type' => \MongoClient::RP_PRIMARY), $this->client->getReadPreference()); }