public function ImageValidatorTest::testInvalidMinHeight

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

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php, line 198

Class

ImageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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);
}