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