You are here

public function AbstractComparisonValidatorTestCase::testValidComparisonToValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php \Symfony\Component\Validator\Tests\Constraints\AbstractComparisonValidatorTestCase::testValidComparisonToValue()

@dataProvider provideAllValidComparisons

Parameters

mixed $dirtyValue:

mixed $comparisonValue:

File

vendor/symfony/validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php, line 87

Class

AbstractComparisonValidatorTestCase
@author Daniel Holmes <daniel@danielholmes.org>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidComparisonToValue($dirtyValue, $comparisonValue) {
  $constraint = $this
    ->createConstraint(array(
    'value' => $comparisonValue,
  ));
  $this->validator
    ->validate($dirtyValue, $constraint);
  $this
    ->assertNoViolation();
}