Ejemplo n.º 1
0
 /**
  * @depends passwordTest
  * @expectedException SimpleAPISecurity\PHP\Exceptions\InvalidTypeException
  * @expectedExceptionMessage Expected string parameter for password in verifyPassword
  */
 public function passwordTestBadPassword()
 {
     $password = '******';
     $passwordHash = Hash::hashPassword($password);
     Hash::verifyPassword(1, $passwordHash);
 }
 /**
  * Hash the given value.
  *
  * @param string $value
  * @param array  $options
  *
  * @throws \RuntimeException
  *
  * @return string
  * @return string
  */
 public function make($value, array $options = [])
 {
     return Hash::hashPassword($value);
 }