You are here

public function ImageValidatorTest::testInvalidMinRatio in Plug 7

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

File

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

Class

ImageValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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