You are here

public function CountValidatorTest::testValidValuesMin in Zircon Profile 8.0

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

@dataProvider getFiveOrMoreElements

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValuesMin($value) {
  $constraint = new Count(array(
    'min' => 5,
  ));
  $this->validator
    ->validate($value, $constraint);
  $this
    ->assertNoViolation();
}