public function validate($input) : bool { return $this->less($input, $this->maxValue); }
/** * @dataProvider providerForFail */ public function testInvalidMaxValueShouldReturnFalse($maxValue, $inclusive, $input) { $max = new Max($maxValue, $inclusive); $this->assertFalse($max->validate($input)); }