/** * Ensures that setMax() throws an exception when given a value less than the minimum * * @return void */ public function testSetMaxExceptionLessThanMin() { $max = 1; $min = 2; $this->setExpectedException('Zend\\Validator\\Exception\\InvalidArgumentException', 'The maximum must be greater than or equal to the minimum length, but '); $this->_validator->setMin($min)->setMax($max); }