You are here

public function IssnValidatorTest::getInvalidIssn in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/IssnValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IssnValidatorTest::getInvalidIssn()

File

vendor/symfony/validator/Tests/Constraints/IssnValidatorTest.php, line 82

Class

IssnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidIssn() {
  return array(
    array(
      0,
      Issn::TOO_SHORT_ERROR,
    ),
    array(
      '1539',
      Issn::TOO_SHORT_ERROR,
    ),
    array(
      '2156-537A',
      Issn::INVALID_CHARACTERS_ERROR,
    ),
    array(
      '1119-0231',
      Issn::CHECKSUM_FAILED_ERROR,
    ),
    array(
      '1684-5312',
      Issn::CHECKSUM_FAILED_ERROR,
    ),
    array(
      '1996-0783',
      Issn::CHECKSUM_FAILED_ERROR,
    ),
    array(
      '1684-537X',
      Issn::CHECKSUM_FAILED_ERROR,
    ),
    array(
      '1996-0795',
      Issn::CHECKSUM_FAILED_ERROR,
    ),
  );
}