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