@dataProvider getValidNonHyphenatedIssn
public function testRequireHyphenIssns($issn) {
$constraint = new Issn(array(
'requireHyphen' => true,
));
$this->context
->expects($this
->once())
->method('addViolation')
->with($constraint->message);
$this->validator
->validate($issn, $constraint);
}