Esempio n. 1
0
 function testClearErrorRemovesAnyError()
 {
     $hidden = new T_Form_Hidden('alias', 'value');
     $hidden->validate(new T_Cage_Array(array()));
     $this->assertFalse($hidden->isValid());
     $hidden->clearError();
     $this->assertTrue($hidden->isValid());
     $this->assertFalse($hidden->getError());
 }