public function testValidChoiceCallbackClosure() {
$constraint = new Choice(array(
'callback' => function () {
return array(
'foo',
'bar',
);
},
));
$this->context
->expects($this
->never())
->method('addViolation');
$this->validator
->validate('bar', $constraint);
}