public function validate($input) { $min_validator = new Min($this->min); $max_validator = new Max($this->max); return $min_validator->validate($input) && $max_validator->validate($input); }
/** * @dataProvider dataProvider */ public function testMax($text, $max, $result) { $validator = new Max($max); $this->assertEquals($validator->validate($text), $result); }