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