public function testInvalidChoice() {
$constraint = new Choice(array(
'choices' => array(
'foo',
'bar',
),
'message' => 'myMessage',
));
$this->context
->expects($this
->once())
->method('addViolation')
->with('myMessage', array(
'{{ value }}' => 'baz',
), null, null);
$this->validator
->validate('baz', $constraint);
}