readSecondaryPreferred() public method

public readSecondaryPreferred ( array $tags = null )
$tags array
Beispiel #1
0
 public function testReadSecondaryPreferred(array $tags = null)
 {
     $this->collection->readSecondaryPreferred(array(array('dc' => 'kyiv'), array('dc' => 'lviv')));
     $this->assertEquals(array('type' => \MongoClient::RP_SECONDARY_PREFERRED, 'tagsets' => array(array('dc' => 'kyiv'), array('dc' => 'lviv'))), $this->collection->getReadPreference());
 }