You are here

public function FileValidatorTest::testInvalidMaxSize in Plug 7

@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php, line 233

Class

FileValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidMaxSize() {
  $constraint = new File(array(
    'maxSize' => '1abc',
  ));
  $this->validator
    ->validate($this->path, $constraint);
}