resetError() public method

Clears any flagged errors on the connection
Deprecation: Use MongoDB::resetError() instead.
public resetError ( ) : array
return array Returns the database response.
 /**
  * @expectedException PHPUnit_Framework_Error
  */
 public function testResetError() {
     $m = new Mongo();
     $m->resetError();
     $err = $m->lastError();
     $this->assertEquals($err['err'], null);
     $this->assertEquals($err['n'], 0);
     $this->assertEquals((bool)$err['ok'], true);
 }