You are here

public function CountValidatorTest::testValidValuesMax in Plug 7

@dataProvider getThreeOrLessElements

File

lib/Symfony/validator/Symfony/Component/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();
}