mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 22:47:03 +08:00
15 lines
289 B
PHP
Executable File
15 lines
289 B
PHP
Executable File
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use service\Utility\UUID;
|
|
|
|
class GetKeyTest extends TestCase {
|
|
public function testGetKey()
|
|
{
|
|
$excepted = '/^[0-9a-f]{32}$/i';
|
|
$actual = UUID::getKey();
|
|
|
|
$this->assertEquals(1, preg_match($excepted, $actual));
|
|
}
|
|
}
|