Exemple #1
0
 public function isChoiceSelected(FormView $view, ChoiceView $choice)
 {
     return FormUtil::isChoiceSelected($choice->getValue(), $view->get('value'));
 }
Exemple #2
0
 /**
  * @dataProvider isChoiceSelectedProvider
  */
 public function testIsChoiceSelected($expected, $choice, $value)
 {
     $this->assertSame($expected, FormUtil::isChoiceSelected($choice, $value));
 }