public function AbstractComparisonValidatorTestCase::testValidComparisonToValue in Plug 7
@dataProvider provideAllValidComparisons
Parameters
mixed $dirtyValue:
mixed $comparisonValue:
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ AbstractComparisonValidatorTestCase.php, line 87
Class
- AbstractComparisonValidatorTestCase
- @author Daniel Holmes <daniel@danielholmes.org>
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testValidComparisonToValue($dirtyValue, $comparisonValue) {
$constraint = $this
->createConstraint(array(
'value' => $comparisonValue,
));
$this->validator
->validate($dirtyValue, $constraint);
$this
->assertNoViolation();
}