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