public function LengthValidatorTest::testValidValuesMin

@dataProvider getFiveOrMoreCharacters

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php, line 108

Class

LengthValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValuesMin($value, $mbOnly = false) {
  if ($mbOnly && !function_exists('mb_strlen')) {
    $this
      ->markTestSkipped('mb_strlen does not exist');
  }
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $constraint = new Length(array(
    'min' => 5,
  ));
  $this->validator
    ->validate($value, $constraint);
}