public function TypeValidatorTest::testValidValues

@dataProvider getValidValues

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php, line 64

Class

TypeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValues($value, $type) {
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $constraint = new Type(array(
    'type' => $type,
  ));
  $this->validator
    ->validate($value, $constraint);
}