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