Beispiel #1
0
 /**
  *
  */
 public function testFormMethods()
 {
     $form = new Form();
     $this->assertEquals('post', $form->getMethod());
     $form->setMethod('POST');
     $this->assertEquals('post', $form->getMethod());
     $form->setMethod('get');
     $this->assertEquals('get', $form->getMethod());
     $form->setMethod('put');
     $this->assertEquals('put', $form->getMethod());
     $form->setMethod(false);
     $this->assertEquals(null, $form->getMethod());
     $form->setAttribute('method', 'test');
     $this->assertEquals('test', $form->getMethod());
 }