blob: d7ef9bec954ebdb1902f982d1d0c4ccb7980f1f8 (
plain) (
tree)
|
|
<?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')
);
}
}
|