You are here

public function LengthValidatorTest::testConstraintGetDefaultOption in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php, line 248

Class

LengthValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testConstraintGetDefaultOption() {
  $constraint = new Length(5);
  $this
    ->assertEquals(5, $constraint->min);
  $this
    ->assertEquals(5, $constraint->max);
}