Exemple #1
0
 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 testMin($text, $min, $result)
 {
     $validator = new Min($min);
     $this->assertEquals($validator->validate($text), $result);
 }