public function RegexValidatorTest::testValidValues

@dataProvider getValidValues

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php, line 62

Class

RegexValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValues($value) {
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $constraint = new Regex(array(
    'pattern' => '/^[0-9]+$/',
  ));
  $this->validator
    ->validate($value, $constraint);
}