public function testCallbackMultipleMethods() {
$object = new CallbackValidatorTest_Object();
$this->context
->expects($this
->at(0))
->method('addViolation')
->with('My message', array(
'{{ value }}' => 'foobar',
));
$this->context
->expects($this
->at(1))
->method('addViolation')
->with('Other message', array(
'{{ value }}' => 'baz',
));
$this->validator
->validate($object, new Callback(array(
'validateOne',
'validateTwo',
)));
}