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']]); }
/** * {@inheritdoc} */ protected function doSetMax($max) { $this->validator->setMax($max); }