You are here

public function RangeValidatorTest::testValidValuesMinMax in Plug 7

@dataProvider getTenToTwenty

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php, line 97

Class

RangeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValuesMinMax($value) {
  $constraint = new Range(array(
    'min' => 10,
    'max' => 20,
  ));
  $this->validator
    ->validate($value, $constraint);
  $this
    ->assertNoViolation();
}