コード例 #1
0
 /**
  * @covers cymapgt\core\application\authentication\UserCredential::__construct
  */
 public function testSetMultiFactorKeyLengthExceptionIfOn()
 {
     $this->setExpectedException('cymapgt\\Exception\\UserCredentialException', 'Multi factor auth is flagged on, but the encryption key length is not properly initialized!');
     $entropyObj = array('min_pass_len' => 8, 'max_consecutive_chars' => 2, 'max_consecutive_chars_of_same_class' => 10, 'uppercase' => array('toggle' => true, 'min_len' => 2), 'numeric' => array('toggle' => true, 'min_len' => 1), 'lowercase' => array('toggle' => true, 'min_len' => 2), 'special' => array('toggle' => true, 'min_len' => 1), 'multi_factor_on' => true, 'multi_factor_enc_key_length' => 15);
     $this->object->setUdfEntropy($entropyObj);
 }