public function testIntegerFieldMinValueValidationError() { $this->setExpectedException('Stato\\Webflow\\Forms\\ValidationError', 'Ensure this value is less than or equal to %s.'); $f = new IntegerField(array('min_value' => 4)); $f->clean('3'); }