readPrimaryOnly() public method

public readPrimaryOnly ( )
Ejemplo n.º 1
0
 public function testReadPrimaryOnly()
 {
     $this->collection->readPrimaryOnly();
     $this->assertEquals(array('type' => \MongoClient::RP_PRIMARY), $this->collection->getReadPreference());
 }