public function IsbnValidatorTest::testInvalidIsbn13 in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Constraints/IsbnValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IsbnValidatorTest::testInvalidIsbn13()
@dataProvider getInvalidIsbn13
File
- vendor/
symfony/ validator/ Tests/ Constraints/ IsbnValidatorTest.php, line 201
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidIsbn13($isbn, $code) {
$constraint = new Isbn(array(
'type' => 'isbn13',
'isbn13Message' => 'myMessage',
));
$this->validator
->validate($isbn, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', '"' . $isbn . '"')
->setCode($code)
->assertRaised();
}