resetError() 공개 메소드

Clears any flagged errors on the connection
사용 중단: Use MongoDB::resetError() instead.
public resetError ( ) : array
리턴 array Returns the database response.
예제 #1
0
 /**
  * @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);
 }