createRunId() public static method

Create unique run ID
public static createRunId ( ) : string
return string
Ejemplo n.º 1
0
 public function testCreateRunId()
 {
     $idOne = Util::createRunId();
     $idTwo = Util::createRunId();
     $this->assertSame(128, strlen($idOne));
     $this->assertSame(128, strlen($idTwo));
     $this->assertNotSame($idOne, $idTwo);
 }
Ejemplo n.º 2
0
 public function __construct($runId = null, $ranAt = null)
 {
     $this->runId = $runId ?: Util::createRunId();
     $this->ranAt = $ranAt ?: microtime(true);
 }