public function IssnValidatorTest::testRequireHyphenIssns

@dataProvider getValidNonHyphenatedIssn

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/IssnValidatorTest.php, line 156

Class

IssnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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);
}