You are here

public function ImageValidatorTest::testInvalidMaxWidth in Plug 7

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

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php, line 182

Class

ImageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidMaxWidth() {
  $constraint = new Image(array(
    'maxWidth' => '1abc',
  ));
  $this->validator
    ->validate($this->image, $constraint);
}