You are here

public function LengthValidatorTest::getOneCharset in Plug 7

File

lib/Symfony/validator/Symfony/Component/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,
    ),
  );
}