/**
  * @test
  */
 public function updateNecessityForDecreasedHashcount()
 {
     $password = '******';
     $saltedHashPassword = $this->objectInstance->getHashedPassword($password);
     $decreasedHashCount = $this->objectInstance->getHashCount() - 1;
     $this->objectInstance->setMinHashCount($decreasedHashCount);
     $this->objectInstance->setHashCount($decreasedHashCount);
     $this->assertFalse($this->objectInstance->isHashUpdateNeeded($saltedHashPassword));
     // reset hashcount
     $this->objectInstance->setHashCount(NULL);
 }
 /**
  * Method sets minimum allowed log2 number of iterations for password stretching.
  *
  * @param	integer		$minHashCount  minimum allowed log2 number of iterations for password stretching to set
  * @see		MIN_HASH_COUNT
  * @see		$minHashCount
  * @see		getMinHashCount()
  */
 public function setMinHashCount($minHashCount = NULL)
 {
     self::$minHashCount = !is_NULL($minHashCount) && is_int($minHashCount) ? $minHashCount : self::MIN_HASH_COUNT;
 }