pairConnect() public method

Connects to paired database server
Deprecation: Pass a string of the form "mongodb://server1,server2" to the constructor instead of using this method.
public pairConnect ( ) : boolean
return boolean
 public function testConstruct()
 {
     $m = new Mongo("localhost:27017,localhost:27018", false);
     $m->pairConnect();
     $c = $m->selectCollection("phpunit", "test");
     $c->insert(array("foo", "bar"));
     $left = new Mongo("localhost:27017");
     $left->selectCollection("foo", "bar")->insert(array('x' => 1));
     $lerr = $left->lastError();
     $right = new Mongo("localhost:27018");
     $right->selectCollection("foo", "bar")->insert(array('x' => 1));
     $rerr = $right->lastError();
 }