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