friendica-addons/dav/SabreDAV/tests/Sabre/DAV/UUIDUtilTest.php

24 lines
615 B
PHP
Raw Normal View History

2012-06-03 14:19:28 -04:00
<?php
class Sabre_DAV_UUIDUtilTest extends PHPUnit_Framework_TestCase {
function testValidateUUID() {
$this->assertTrue(
Sabre_DAV_UUIDUtil::validateUUID('11111111-2222-3333-4444-555555555555')
);
$this->assertFalse(
Sabre_DAV_UUIDUtil::validateUUID(' 11111111-2222-3333-4444-555555555555')
);
$this->assertTrue(
Sabre_DAV_UUIDUtil::validateUUID('ffffffff-2222-3333-4444-555555555555')
);
$this->assertFalse(
Sabre_DAV_UUIDUtil::validateUUID('fffffffg-2222-3333-4444-555555555555')
);
}
}