Page MenuHomePhabricator

UUIDUtilTest.php
No OneTemporary

UUIDUtilTest.php

<?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

Mime Type
text/x-php
Expires
Mon, Dec 23, 4:55 PM (4 h, 31 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
915673
Default Alt Text
UUIDUtilTest.php (802 B)

Event Timeline