예제 #1
0
 public function test_validate_form()
 {
     $inputTrue = $this->mockInputText('name3');
     $inputFalse = $this->mockInputText('name4', false);
     $form = new Form();
     $form->addInput($inputTrue);
     $this->assertTrue($form->validate());
     $form->addInput($inputFalse);
     $this->assertFalse($form->validate());
 }