示例#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);
 }
示例#2
0
 /**
  * @dataProvider dataProvider
  */
 public function testMax($text, $max, $result)
 {
     $validator = new Max($max);
     $this->assertEquals($validator->validate($text), $result);
 }