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'); }
public function needsRehash(Encoder $encoder) { return $encoder->needsRehash($this->hash); }