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