public function testResetError() { $this->object->resetError(); $err = $this->object->lastError(); $this->assertEquals($err['err'], null); $this->assertEquals($err['n'], 0); $this->assertEquals((bool)$err['ok'], true); }
/** * Wrapper method for MongoDB::resetError(). * * @deprecated 1.1 Deprecated in driver; will be removed for 1.2 * @see http://php.net/manual/en/mongodb.reseterror.php * @return array */ public function resetError() { return $this->mongoDB->resetError(); }
public function resetError() { return $this->_connected ? $this->_db->resetError() : NULL; }