clearErrors() public method

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