@dataProvider getInvalidIsbn
public function testInvalidIsbn($isbn) {
$constraint = new Isbn(array(
'isbn10' => true,
'isbn13' => true,
));
$this->context
->expects($this
->once())
->method('addViolation')
->with($constraint->bothIsbnMessage);
$this->validator
->validate($isbn, $constraint);
}