public submit ( $additional = false ) : hash | ||
리턴 | hash | Submitted values. |
public function submit($additional = false)
{
$encoding = $this->encode();
if ($additional) {
$encoding->merge($additional);
}
return $encoding;
}
function testPost() { $form = new SimpleForm(new SimpleFormTag(array('method' => 'post')), $this->page('C:\\Users\\Garen\\Documents\\CS580\\Recipes\\RecipesInLaravel\\public\\testtt.html')); $select = new SimpleSelectionTag(array('name' => 'a')); $select->addTag(new SimpleOptionTag(array('value' => 'aaa', 'selected' => ''))); $form->addWidget($select); $this->assertIdentical($form->submit(), new SimplePostEncoding(array('a' => 'aaa'))); }