mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
remove files since phpcs doesn't tolerate them
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
// @codingStandardsIgnoreFile
|
||||
namespace Ramsey\Uuid\Generator;
|
||||
|
||||
define('UUID_TYPE_TIME', 1);
|
||||
|
||||
final class PeclUuidHelper
|
||||
{
|
||||
const EXAMPLE_UUID = 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6';
|
||||
}
|
||||
|
||||
function uuid_create($type)
|
||||
{
|
||||
if ($type === UUID_TYPE_TIME) {
|
||||
return PeclUuidHelper::EXAMPLE_UUID;
|
||||
}
|
||||
}
|
||||
|
||||
function uuid_parse($uuid)
|
||||
{
|
||||
return PeclUuidHelper::EXAMPLE_UUID;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
namespace Ramsey\Uuid\Test\Generator;
|
||||
|
||||
use Ramsey\Uuid\Generator\PeclUuidTimeGenerator;
|
||||
use Ramsey\Uuid\Test\TestCase;
|
||||
use Ramsey\Uuid\Generator\PeclUuidHelper;
|
||||
|
||||
// @codingStandardsIgnoreStart
|
||||
require_once 'PeclUuidTestHelper.php';
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
class PeclUuidTimeGeneratorTest extends TestCase
|
||||
{
|
||||
public function testGenerateCreatesUuid()
|
||||
{
|
||||
$generator = new PeclUuidTimeGenerator;
|
||||
$uuid = $generator->generate();
|
||||
$this->assertEquals(PeclUuidHelper::EXAMPLE_UUID, $uuid);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user