You are here

public function LengthValidatorTest::getOneCharset in Zircon Profile 8.0

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

File

vendor/symfony/validator/Tests/Constraints/LengthValidatorTest.php, line 90

Class

LengthValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getOneCharset() {
  if (!function_exists('iconv') && !function_exists('mb_convert_encoding')) {
    $this
      ->markTestSkipped('Mbstring or iconv is required for this test.');
  }
  return array(
    array(
      'é',
      'utf8',
      true,
    ),
    array(
      "",
      'CP1252',
      true,
    ),
    array(
      "",
      'XXX',
      false,
    ),
    array(
      "",
      'utf8',
      false,
    ),
  );
}