Esempio n. 1
0
 public function testFormWithDashes()
 {
     $form = new Garp_Form();
     $form->setAction('/my/action/')->setMethod('post');
     $form->addElement('email', 'e-mail', array('label' => 'Your email address', 'required' => true));
     $form->addElement('password', 'pass-word', array('label' => 'the label', 'required' => true));
     $form->addElement('submit', 'Register');
     $this->assertTrue($form->isValid(array('e-mail' => '*****@*****.**', 'pass-word' => '123456')));
 }