Update Tests to supports namespaces
This commit is contained in:
25
Tests/UuidTest.php
Normal file
25
Tests/UuidTest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/** DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
/** Test the uuid.php file */
|
||||
class uuidTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_uuid1 ()
|
||||
{
|
||||
$res = uuid::uuid4 ();
|
||||
$this->assertRegExp (36, strlen ($res));
|
||||
}
|
||||
|
||||
public function test_uuid2 ()
|
||||
{
|
||||
$res = uuid::uuid4 ();
|
||||
$this->assertRegExp (true, strspn ("0123456789abcdef-", $res) ==
|
||||
strlen ($res));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user