@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
public function testInvalidMinHeight() {
  if (!class_exists('Symfony\\Component\\HttpFoundation\\File\\File')) {
    $this
      ->markTestSkipped('The "HttpFoundation" component is not available');
  }
  $constraint = new Image(array(
    'minHeight' => '1abc',
  ));
  $this->validator
    ->validate($this->image, $constraint);
}