public function RangeValidatorTest::testValidValuesMinMax in Plug 7
@dataProvider getTenToTwenty
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ RangeValidatorTest.php, line 97
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testValidValuesMinMax($value) {
$constraint = new Range(array(
'min' => 10,
'max' => 20,
));
$this->validator
->validate($value, $constraint);
$this
->assertNoViolation();
}