public function validate($input) : bool
{
return $this->less($this->minValue, $input) && $this->less($input, $this->maxValue);
}
/** * @dataProvider providerForFail * @expectedException \Bluz\Validator\Exception\ValidatorException */ public function testValuesOutBoundsShouldRaiseException($min, $max, $inclusive, $input) { $validator = new Between($min, $max, $inclusive); $this->assertFalse($validator->validate($input)); $this->assertNotEmpty($validator->__toString()); $this->assertFalse($validator->assert($input)); }