createRunId() публичный статический Метод

Create unique run ID
public static createRunId ( ) : string
Результат string
 public function testCreateRunId()
 {
     $idOne = Util::createRunId();
     $idTwo = Util::createRunId();
     $this->assertSame(128, strlen($idOne));
     $this->assertSame(128, strlen($idTwo));
     $this->assertNotSame($idOne, $idTwo);
 }
Пример #2
0
 public function __construct($runId = null, $ranAt = null)
 {
     $this->runId = $runId ?: Util::createRunId();
     $this->ranAt = $ranAt ?: microtime(true);
 }