You are here

public function IsbnValidatorTest::testValidIsbn10 in Plug 7

@dataProvider getValidIsbn10

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php, line 157

Class

IsbnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidIsbn10($isbn) {
  $constraint = new Isbn(array(
    'type' => 'isbn10',
  ));
  $this->validator
    ->validate($isbn, $constraint);
  $this
    ->assertNoViolation();
}