setMethod() public method

Set the form method.
public setMethod ( string $method ) : Form
$method string
return Form
コード例 #1
0
ファイル: FormTest.php プロジェクト: nicksagona/PopPHP
 public function testSetAndGetMethod()
 {
     $f = new Form('/submit', 'post');
     $f->setMethod('get');
     $this->assertEquals('get', $f->getMethod());
 }