Esempio n. 1
0
 public function testMax()
 {
     $validator = new NumberValidator();
     $validator->setMax(1);
     $this->doTestValidator($validator, ['0' => [], '1' => [], '2' => ['validator.number.max'], '0.99' => [], '1.00' => [], '1.01' => ['validator.number.max']]);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 protected function doSetMax($max)
 {
     $this->validator->setMax($max);
 }