mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
20 lines
477 B
PHP
20 lines
477 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Ramsey\Uuid\Test\Generator;
|
|
|
|
use Ramsey\Uuid\Generator\RandomBytesGenerator;
|
|
use Ramsey\Uuid\Generator\RandomGeneratorFactory;
|
|
use Ramsey\Uuid\Test\TestCase;
|
|
|
|
class RandomGeneratorFactoryTest extends TestCase
|
|
{
|
|
public function testFactoryReturnsRandomBytesGenerator(): void
|
|
{
|
|
$generator = (new RandomGeneratorFactory)->getGenerator();
|
|
|
|
$this->assertInstanceOf(RandomBytesGenerator::class, $generator);
|
|
}
|
|
}
|