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