Exemplo n.º 1
0
 public function testGenerateV4AscEnc64IsSequential()
 {
     $values = array();
     for ($n = 0; $n < 2000; $n++) {
         $values[] = helicon\uuid\Util::generateV4Asc(helicon\uuid\Util::FORMAT_ENC64);
     }
     $failed = false;
     $lv = null;
     foreach ($values as $v) {
         if ($lv !== null && $lv > $v) {
             $failed = $this->formatUuidForOutput($v) . ' smaller than ' . $this->formatUuidForOutput($lv);
         }
         $lv = $v;
     }
     if ($failed) {
         $this->fail($failed);
     }
 }