コード例 #1
0
ファイル: HashSpec.php プロジェクト: shrikeh/crypto
 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);
 }