public function ImageValidatorTest::testHeightTooSmall in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ ImageValidatorTest.php, line 135
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testHeightTooSmall() {
$constraint = new Image(array(
'minHeight' => 3,
'minHeightMessage' => 'myMessage',
));
$this->validator
->validate($this->image, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ height }}', '2')
->setParameter('{{ min_height }}', '3')
->setCode(Image::TOO_LOW_ERROR)
->assertRaised();
}