Пример #1
0
 /**
  * Generates a session ID.
  *
  * @return string
  */
 protected function generateId()
 {
     return Random::getPseudoString(32);
 }
Пример #2
0
 /**
  * Tests the method check
  */
 public function testGetPseudoStringMethodChecks()
 {
     try {
         Random::getPseudoString(61, 'nonexistent');
         $this->fail('The method check fails');
     } catch (Exception $exception) {
     }
 }