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