You are here

public function LengthValidatorTest::testValidValuesMax in Plug 7

@dataProvider getThreeOrLessCharacters

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php, line 118

Class

LengthValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValuesMax($value) {
  $constraint = new Length(array(
    'max' => 3,
  ));
  $this->validator
    ->validate($value, $constraint);
  $this
    ->assertNoViolation();
}