public function testCreateRunId() { $idOne = Util::createRunId(); $idTwo = Util::createRunId(); $this->assertSame(128, strlen($idOne)); $this->assertSame(128, strlen($idTwo)); $this->assertNotSame($idOne, $idTwo); }
public function __construct($runId = null, $ranAt = null) { $this->runId = $runId ?: Util::createRunId(); $this->ranAt = $ranAt ?: microtime(true); }