/** * @depends passwordTest * @expectedException SimpleAPISecurity\PHP\Exceptions\InvalidTypeException * @expectedExceptionMessage Expected string parameter for passwordHash in verifyPassword */ public function passwordTestBashPasswordHash() { $password = '******'; Hash::verifyPassword($password, 1); }
/** * Check the given plain value against a hash. * * @param string $value * @param string $hashedValue * @param array $unusedOptions Options are not used for Sodium password verification * * @return bool */ public function check($value, $hashedValue, array $unusedOptions = []) { return Hash::verifyPassword($value, $hashedValue); }