예제 #1
0
 /**
  * Generate a new token
  *
  * @return string a new token
  */
 protected function getNewToken()
 {
     return Random::generateOneTimeToken();
 }
예제 #2
0
 /**
  * @covers Xoops\Core\Random::generateKey
  */
 public function testGenerateKey()
 {
     $result = Random::generateKey();
     $this->assertTrue(is_string($result));
     $this->assertSame(128, strlen($result));
 }