blob: d7ef9bec954ebdb1902f982d1d0c4ccb7980f1f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
declare(strict_types=1);
namespace Sabre\DAV;
class UUIDUtilTest extends \PHPUnit\Framework\TestCase
{
public function testValidateUUID()
{
$this->assertTrue(
UUIDUtil::validateUUID('11111111-2222-3333-4444-555555555555')
);
$this->assertFalse(
UUIDUtil::validateUUID(' 11111111-2222-3333-4444-555555555555')
);
$this->assertTrue(
UUIDUtil::validateUUID('ffffffff-2222-3333-4444-555555555555')
);
$this->assertFalse(
UUIDUtil::validateUUID('fffffffg-2222-3333-4444-555555555555')
);
}
}
|