Beispiel #1
0
 public function test_construct_with_params()
 {
     try {
         $form = new SimpleForm("POST", "http://mydomain.com/myurl");
         $this->assertEquals("POST", $form->getMethod());
         $this->assertEquals("http://mydomain.com/myurl", $form->getUrl());
     } catch (WTForms\Exception $e) {
         $this->fail($e->getMessage());
     }
 }