/** * @test */ public function updateNecessityForIncreasedHashcount() { $password = '******'; $saltedHashPassword = $this->objectInstance->getHashedPassword($password); $increasedHashCount = $this->objectInstance->getHashCount() + 1; $this->objectInstance->setMaxHashCount($increasedHashCount); $this->objectInstance->setHashCount($increasedHashCount); $this->assertTrue($this->objectInstance->isHashUpdateNeeded($saltedHashPassword)); // reset hashcount $this->objectInstance->setHashCount(NULL); }