new \Phalcon\Validation\Validator\PasswordStrength([ 'minScore' => {[1-4] - minimal password score}, 'message' => {string - validation message}, 'allowEmpty' => {bool - allow empty value} ])
Наследование: extends Phalcon\Validation\Validator
Пример #1
0
 public function testValidateInvalidValue()
 {
     $validation = Stub::make('Phalcon\\Validation', array('getValue' => array('value', 'value'), 'appendMessage' => true));
     $validator = new PasswordStrength();
     $this->assertFalse($validator->validate($validation, 'password'));
 }