public function LengthValidatorTest::testValidValuesMax in Plug 7
@dataProvider getThreeOrLessCharacters
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ LengthValidatorTest.php, line 118
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testValidValuesMax($value) {
$constraint = new Length(array(
'max' => 3,
));
$this->validator
->validate($value, $constraint);
$this
->assertNoViolation();
}