@dataProvider getInvalidReservedIpsV4
public function testInvalidReservedIpsV4($ip) {
$constraint = new Ip(array(
'version' => Ip::V4_NO_RES,
'message' => 'myMessage',
));
$this->context
->expects($this
->once())
->method('addViolation')
->with('myMessage', array(
'{{ value }}' => $ip,
));
$this->validator
->validate($ip, $constraint);
}