You are here

public function ImageValidatorTest::testInvalidMaxHeight in Plug 7

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

File

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

Class

ImageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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