Esempio n. 1
0
 /**
  * @covers CodeCollab\Authentication\User::__construct
  * @covers CodeCollab\Authentication\User::rehash
  */
 public function testRehash()
 {
     $user = new User($this->createMock(Session::class));
     $this->assertRegExp('/^\\$2y\\$14\\$(.*)$/', $user->rehash('password'));
     $this->assertSame(60, strlen($user->rehash('password')));
 }