Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)

This commit is contained in:
2023-04-13 22:22:46 +02:00
parent b017700d0a
commit 273db5f183
51 changed files with 3926 additions and 3637 deletions

View File

@@ -1,25 +1,28 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
/**
* DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
use Domframework\Uuid;
/** Test the Uuid.php file */
/**
* Test the Uuid.php file
*/
class UuidTest extends \PHPUnit_Framework_TestCase
{
public function test_uuid1()
public function testUuid1()
{
$res = Uuid::uuid4();
$this->assertRegExp(36, strlen($res));
}
public function test_uuid2()
public function testUuid2()
{
$res = Uuid::uuid4();
$this->assertRegExp(true, strspn("0123456789abcdef-", $res) ==