clearErrors() public method

Clear errors.
public clearErrors ( ) : Element
return Element
示例#1
0
 public function testClearErrors()
 {
     $e = new Element('text', 'email');
     $e->clearErrors();
     $errors = $e->getErrors();
     $this->assertEquals(0, count($errors));
 }