aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/UUIDUtilTest.php
blob: d7ef9bec954ebdb1902f982d1d0c4ccb7980f1f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

     
                        
 
                    
 



                                                      











                                                                           
     
 
<?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')
        );
    }
}