Ejemplo n.º 1
0
 /**
  * Testing Helper random string generator with spaces
  *
  * @return void
  */
 public function testRandomGenerator()
 {
     $string = Helper::generateRandomString(10, TRUE, FALSE);
     $this->assertTrue(strlen($string) == 10, "string should contain 10 characters");
     $this->assertTrue(strpos($string, ' ') !== FALSE, "spaces should have been found");
 }
Ejemplo n.º 2
0
 /**
  * Retrieve the current session UUID
  *
  * @return string current UUID
  */
 public function getSession()
 {
     if (!isset($this->_sessionUuid)) {
         $this->_sessionUuid = Helper::createUuid();
     }
     return $this->_sessionUuid;
 }