setMajorityWriteConcern() public method

May be used only if mongo extension version >=1.5
public setMajorityWriteConcern ( integer $timeout = 10000 ) : Database
$timeout integer timeout in milliseconds
return Database
Example #1
0
 public function testSetMajorityWriteConcern()
 {
     $this->database->setMajorityWriteConcern(13000);
     $this->assertEquals(array('w' => 'majority', 'wtimeout' => 13000), $this->database->getWriteConcern());
 }