Inheritance: implements Illuminate\Contracts\Hashing\Hasher
Exemplo n.º 1
0
 public function testBasicHashing()
 {
     $hasher = new OsuHasher();
     $value = $hasher->make('password');
     $this->assertNotSame('password', $value);
     $this->assertNotSame(md5('password'), $value);
     $this->assertTrue($hasher->check('password', $value));
     $this->assertFalse($hasher->needsRehash($value));
     $this->assertTrue($hasher->needsRehash($value, ['cost' => 4]));
 }