You are here

public function CountValidatorTest::testValidValuesMax 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::testValidValuesMax()

@dataProvider getThreeOrLessElements

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidValuesMax($value) {
  $constraint = new Count(array(
    'max' => 3,
  ));
  $this->validator
    ->validate($value, $constraint);
  $this
    ->assertNoViolation();
}