404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.148.105.127: ~ $
<?php

declare(strict_types=1);

namespace Ramsey\Uuid\Test\Generator;

use Ramsey\Uuid\Generator\PeclUuidTimeGenerator;
use Ramsey\Uuid\Rfc4122\Fields;
use Ramsey\Uuid\Test\TestCase;
use Ramsey\Uuid\Uuid;

class PeclUuidTimeGeneratorTest extends TestCase
{
    /**
     * @requires extension uuid
     */
    public function testGenerateCreatesUuidUsingPeclUuidMethods(): void
    {
        $generator = new PeclUuidTimeGenerator();
        $bytes = $generator->generate();
        $uuid = Uuid::fromBytes($bytes);

        /** @var Fields $fields */
        $fields = $uuid->getFields();

        $this->assertSame(16, strlen($bytes));
        $this->assertSame(Uuid::UUID_TYPE_TIME, $fields->getVersion());
    }
}

Filemanager

Name Type Size Permission Actions
CombGeneratorTest.php File 4.65 KB 0644
DceSecurityGeneratorTest.php File 11.4 KB 0644
DefaultNameGeneratorTest.php File 2.48 KB 0644
DefaultTimeGeneratorTest.php File 6.88 KB 0644
NameGeneratorFactoryTest.php File 464 B 0644
PeclUuidNameGeneratorTest.php File 3.48 KB 0644
PeclUuidRandomGeneratorTest.php File 757 B 0644
PeclUuidTimeGeneratorTest.php File 747 B 0644
RandomBytesGeneratorTest.php File 1.89 KB 0644
RandomGeneratorFactoryTest.php File 498 B 0644
RandomLibAdapterTest.php File 2.28 KB 0644
TimeGeneratorFactoryTest.php File 1.21 KB 0644
UnixTimeGeneratorTest.php File 7.36 KB 0644