Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/vendor/sabre/vobject/tests/VObject/UUIDUtilTest.php

37 lines
802 B

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