You are here

public function LengthValidatorTest::testValidValuesMax in Zircon Profile 8

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

@dataProvider getThreeOrLessCharacters

File

vendor/symfony/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();
}