You are here

public function CountValidatorTest::testValidValuesExact in Zircon Profile 8

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

@dataProvider getFourElements

File

vendor/symfony/validator/Tests/Constraints/CountValidatorTest.php, line 102

Class

CountValidatorTest
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValuesExact($value) {
  $constraint = new Count(4);
  $this->validator
    ->validate($value, $constraint);
  $this
    ->assertNoViolation();
}