@dataProvider getValidArguments
public function testWalkSingleConstraint($array) {
$constraint = new Range(array(
'min' => 4,
));
$i = 1;
foreach ($array as $key => $value) {
$this->context
->expects($this
->at($i++))
->method('validateValue')
->with($value, $constraint, '[' . $key . ']', 'MyGroup');
}
$this->context
->expects($this
->never())
->method('addViolation');
$this->validator
->validate($array, new All($constraint));
}