public function RangeValidatorTest::testValidValuesMinMax

@dataProvider getTenToTwenty

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php, line 98

Class

RangeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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