'form_name' => 'form-1',
'button_1' => 'Capture fields',
'outer_field' => 'success',
];
$values2 =
[ 'oranges' =>
['1', '2', '3'
],
'form_name' => 'form_2',
'button_2' => '',
'app_frontend_form_type_contact_form_type' =>
['contactType' => '', 'firstName' => 'John'
],
];
$this->
assertEquals($values1,
$form1->
getPhpValues(), 'HTML5-compliant form attribute handled incorrectly'
);
$this->
assertEquals($values2,
$form2->
getPhpValues(), 'HTML5-compliant form attribute handled incorrectly'
);
} public function testMultiValuedFields() { $form =
$this->
createForm('<form>
<input type="text" name="foo[4]" value="foo" disabled="disabled" />
<input type="text" name="foo" value="foo" disabled="disabled" />
<input type="text" name="foo[2]" value="foo" disabled="disabled" />
<input type="text" name="foo[]" value="foo" disabled="disabled" />
<input type="text" name="bar[foo][]" value="foo" disabled="disabled" />
<input type="text" name="bar[foo][foobar]" value="foo" disabled="disabled" />
<input type="submit" />
</form>
'
);