comparison vendor/sabre/vobject/tests/VObject/UUIDUtilTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
comparison
equal deleted inserted replaced
6:cec75ba50afc 7:430dbd5346f7
1 <?php
2
3 namespace Sabre\VObject;
4
5 class UUIDUtilTest extends \PHPUnit_Framework_TestCase {
6
7 function testValidateUUID() {
8
9 $this->assertTrue(
10 UUIDUtil::validateUUID('11111111-2222-3333-4444-555555555555')
11 );
12 $this->assertFalse(
13 UUIDUtil::validateUUID(' 11111111-2222-3333-4444-555555555555')
14 );
15 $this->assertTrue(
16 UUIDUtil::validateUUID('ffffffff-2222-3333-4444-555555555555')
17 );
18 $this->assertFalse(
19 UUIDUtil::validateUUID('fffffffg-2222-3333-4444-555555555555')
20 );
21
22 }
23
24 /**
25 * @depends testValidateUUID
26 */
27 function testGetUUID() {
28
29 $this->assertTrue(
30 UUIDUtil::validateUUID(
31 UUIDUtil::getUUID()
32 )
33 );
34
35 }
36
37 }