Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820292
UUIDUtilTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
802 B
Subscribers
None
UUIDUtilTest.php
View Options
<?php
namespace
Sabre\VObject
;
class
UUIDUtilTest
extends
\PHPUnit_Framework_TestCase
{
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'
)
);
}
/**
* @depends testValidateUUID
*/
function
testGetUUID
()
{
$this
->
assertTrue
(
UUIDUtil
::
validateUUID
(
UUIDUtil
::
getUUID
()
)
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Dec 22, 12:35 AM (1 w, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
915673
Default Alt Text
UUIDUtilTest.php (802 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment