MediaWiki  1.30.0
UIDGeneratorTest Class Reference
Inheritance diagram for UIDGeneratorTest:
Collaboration diagram for UIDGeneratorTest:

Public Member Functions

 testNewSequentialID ()
 UIDGenerator::newSequentialPerNodeID. More...
 
 testNewSequentialIDs ()
 UIDGenerator::newSequentialPerNodeIDs. More...
 
 testRawUUIDv4 ()
 UIDGenerator::newRawUUIDv4. More...
 
 testRawUUIDv4QuickRand ()
 UIDGenerator::newRawUUIDv4. More...
 
 testTimestampedUID ( $method, $digitlen, $bits, $tbits, $hostbits)
 Test that generated UIDs have the expected properties. More...
 
 testUUIDv1 ()
 UIDGenerator::newUUIDv1. More...
 
 testUUIDv4 ()
 UIDGenerator::newUUIDv4. More...
 

Static Public Member Functions

static provider_testTimestampedUID ()
 array( method, length, bits, hostbits ) NOTE: When adding a new method name here please update the covers tags for the tests! More...
 

Protected Member Functions

 tearDown ()
 

Detailed Description

Definition at line 3 of file UIDGeneratorTest.php.

Member Function Documentation

◆ provider_testTimestampedUID()

static UIDGeneratorTest::provider_testTimestampedUID ( )
static

array( method, length, bits, hostbits ) NOTE: When adding a new method name here please update the covers tags for the tests!

Definition at line 69 of file UIDGeneratorTest.php.

◆ tearDown()

UIDGeneratorTest::tearDown ( )
protected

Definition at line 5 of file UIDGeneratorTest.php.

References UIDGenerator\unitTestTearDown().

◆ testNewSequentialID()

UIDGeneratorTest::testNewSequentialID ( )

◆ testNewSequentialIDs()

UIDGeneratorTest::testNewSequentialIDs ( )

◆ testRawUUIDv4()

UIDGeneratorTest::testRawUUIDv4 ( )

◆ testRawUUIDv4QuickRand()

UIDGeneratorTest::testRawUUIDv4QuickRand ( )

◆ testTimestampedUID()

UIDGeneratorTest::testTimestampedUID (   $method,
  $digitlen,
  $bits,
  $tbits,
  $hostbits 
)

Test that generated UIDs have the expected properties.

provider_testTimestampedUID UIDGenerator::newTimestampedUID128 UIDGenerator::newTimestampedUID88

Definition at line 18 of file UIDGeneratorTest.php.

References as.

◆ testUUIDv1()

UIDGeneratorTest::testUUIDv1 ( )

◆ testUUIDv4()

UIDGeneratorTest::testUUIDv4 ( )

The documentation for this class was generated from the following file: