Passage en Namespace et tous les tests fonctionnels OK
This commit is contained in:
@@ -7,18 +7,20 @@
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
/** Test the uuid.php file */
|
||||
class uuidTest extends \PHPUnit_Framework_TestCase
|
||||
use Domframework\Uuid;
|
||||
|
||||
/** Test the Uuid.php file */
|
||||
class UuidTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_uuid1 ()
|
||||
{
|
||||
$res = uuid::uuid4 ();
|
||||
$res = Uuid::uuid4 ();
|
||||
$this->assertRegExp (36, strlen ($res));
|
||||
}
|
||||
|
||||
public function test_uuid2 ()
|
||||
{
|
||||
$res = uuid::uuid4 ();
|
||||
$res = Uuid::uuid4 ();
|
||||
$this->assertRegExp (true, strspn ("0123456789abcdef-", $res) ==
|
||||
strlen ($res));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user