$this->setExpectedExceptionRegExp('MongoConnectionException',"/Failed to connect to: $host:$port: Authentication failed on database '$database' with username 'foo': auth fail/");
$this->setExpectedExceptionRegExp('MongoConnectionException',"/Failed to connect to: $host:$port: Authentication failed on database '$database' with username 'foo': auth fail/");
$this->setExpectedException('MongoConnectionException',"Failed to connect to: ".$hosts[0].": Connection refused; Failed to connect to: ".$hosts[1].": Connection refused");
$this->setExpectedException('MongoConnectionException',"Failed to connect to: ".$hosts[0].": Connection refused; Failed to connect to: ".$hosts[1].": Connection refused");