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