public static function factory($action = null, $method = 'post', array $fields = null, $indent = null) { return new self($action, $method, $fields, $indent); }
public function testConstructor() { $this->assertInstanceOf('Pop\\Form\\Form', new Form('/submit', 'post')); $this->assertInstanceOf('Pop\\Form\\Form', Form::factory('/submit', 'post')); }