public function setMethod($method) { $this->method = $method; return $this; }
public function testSetAndGetMethod() { $f = new Form('/submit', 'post'); $f->setMethod('get'); $this->assertEquals('get', $f->getMethod()); }