Example #1
0
 /**
  * @covers Form::hasErrors
  */
 public function testHasErrors()
 {
     $this->assertFalse($this->myForm->hasErrors());
     $textBox = $this->myForm->textbox('text_input');
     $this->myForm->addFieldError('text_input', 'Required input');
     $this->assertTrue($this->myForm->hasErrors());
 }