示例#1
0
 public function __construct()
 {
     $this->hash = Random::generateToken();
 }
示例#2
0
 /**
  * @test
  */
 public function shouldAllowGenerateToken()
 {
     $token = Random::generateToken();
     $this->assertInternalType('string', $token);
     $this->assertEquals(43, strlen($token));
 }