示例#1
0
 function it_is_a_password(Encoder $encoder)
 {
     $password = '******';
     $encoder->hash($password)->willReturn(password_hash($password, PASSWORD_BCRYPT));
     $this->beConstructedThroughCreate($password, $encoder);
     $this->shouldHaveType('Shrikeh\\Crypto\\Password');
 }
示例#2
0
文件: Hash.php 项目: shrikeh/crypto
 public function needsRehash(Encoder $encoder)
 {
     return $encoder->needsRehash($this->hash);
 }