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