/** * @dataProvider dataProvider */ public function testNumber($number, $result) { $validator = new Number(); $this->assertEquals($validator->validate($number), $result); }
public function validate($input) { $number_validator = new Number(); return $number_validator->validate($input) && $input >= $this->min; }