1*a1a3b679SAndreas Boehler<?php 2*a1a3b679SAndreas Boehler 3*a1a3b679SAndreas Boehlernamespace Sabre\DAV; 4*a1a3b679SAndreas Boehler 5*a1a3b679SAndreas Boehlerclass UUIDUtilTest extends \PHPUnit_Framework_TestCase { 6*a1a3b679SAndreas Boehler 7*a1a3b679SAndreas Boehler function testValidateUUID() { 8*a1a3b679SAndreas Boehler 9*a1a3b679SAndreas Boehler $this->assertTrue( 10*a1a3b679SAndreas Boehler UUIDUtil::validateUUID('11111111-2222-3333-4444-555555555555') 11*a1a3b679SAndreas Boehler ); 12*a1a3b679SAndreas Boehler $this->assertFalse( 13*a1a3b679SAndreas Boehler UUIDUtil::validateUUID(' 11111111-2222-3333-4444-555555555555') 14*a1a3b679SAndreas Boehler ); 15*a1a3b679SAndreas Boehler $this->assertTrue( 16*a1a3b679SAndreas Boehler UUIDUtil::validateUUID('ffffffff-2222-3333-4444-555555555555') 17*a1a3b679SAndreas Boehler ); 18*a1a3b679SAndreas Boehler $this->assertFalse( 19*a1a3b679SAndreas Boehler UUIDUtil::validateUUID('fffffffg-2222-3333-4444-555555555555') 20*a1a3b679SAndreas Boehler ); 21*a1a3b679SAndreas Boehler 22*a1a3b679SAndreas Boehler 23*a1a3b679SAndreas Boehler } 24*a1a3b679SAndreas Boehler 25*a1a3b679SAndreas Boehler} 26