File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Symfony/Component/Form Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
* ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
27
27
* ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
28
28
* ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType')
29
- * ->add('gender ', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
30
- * 'choices' => array('Male ' => 'm ', 'Female ' => 'f '),
29
+ * ->add('color ', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', array(
30
+ * 'choices' => array('Red ' => 'r ', 'Blue ' => 'b '),
31
31
* ))
32
32
* ->getForm();
33
33
*
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public function testArrayBasedForm()
31
31
$ form = $ this ->factory ->createBuilder ('Symfony\Component\Form\Extension\Core\Type\FormType ' )
32
32
->add ('firstName ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' )
33
33
->add ('lastName ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' )
34
- ->add ('gender ' , 'Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , array (
35
- 'choices ' => array ('male ' => 'Male ' , 'female ' => 'Female ' ),
34
+ ->add ('color ' , 'Symfony\Component\Form\Extension\Core\Type\ChoiceType ' , array (
35
+ 'choices ' => array ('red ' => 'Red ' , 'blue ' => 'Blue ' ),
36
36
'required ' => false ,
37
37
))
38
38
->add ('age ' , 'Symfony\Component\Form\Extension\Core\Type\NumberType ' )
You can’t perform that action at this time.
0 commit comments