ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\UUIDUtilTest Class Reference
+ Inheritance diagram for Sabre\VObject\UUIDUtilTest:
+ Collaboration diagram for Sabre\VObject\UUIDUtilTest:

Public Member Functions

 testValidateUUID ()
 
 testGetUUID ()
 testValidateUUID More...
 

Detailed Description

Definition at line 7 of file UUIDUtilTest.php.

Member Function Documentation

◆ testGetUUID()

Sabre\VObject\UUIDUtilTest::testGetUUID ( )

testValidateUUID

Definition at line 29 of file UUIDUtilTest.php.

References Sabre\VObject\UUIDUtil\getUUID(), and Sabre\VObject\UUIDUtil\validateUUID().

29  {
30 
31  $this->assertTrue(
34  )
35  );
36 
37  }
static getUUID()
Returns a pseudo-random v4 UUID.
Definition: UUIDUtil.php:27
static validateUUID($uuid)
Checks if a string is a valid UUID.
Definition: UUIDUtil.php:60
+ Here is the call graph for this function:

◆ testValidateUUID()

Sabre\VObject\UUIDUtilTest::testValidateUUID ( )

Definition at line 9 of file UUIDUtilTest.php.

References Sabre\VObject\UUIDUtil\validateUUID().

9  {
10 
11  $this->assertTrue(
12  UUIDUtil::validateUUID('11111111-2222-3333-4444-555555555555')
13  );
14  $this->assertFalse(
15  UUIDUtil::validateUUID(' 11111111-2222-3333-4444-555555555555')
16  );
17  $this->assertTrue(
18  UUIDUtil::validateUUID('ffffffff-2222-3333-4444-555555555555')
19  );
20  $this->assertFalse(
21  UUIDUtil::validateUUID('fffffffg-2222-3333-4444-555555555555')
22  );
23 
24  }
static validateUUID($uuid)
Checks if a string is a valid UUID.
Definition: UUIDUtil.php:60
+ Here is the call graph for this function:

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