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