mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-11 16:49:40 +01:00
21 lines
402 B
PHP
21 lines
402 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Tests\SecureRandom;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Psl\SecureRandom;
|
|
|
|
final class FloatTest extends TestCase
|
|
{
|
|
public function testFloat(): void
|
|
{
|
|
$random = SecureRandom\float();
|
|
|
|
static::assertIsFloat($random);
|
|
static::assertGreaterThanOrEqual(0, $random);
|
|
static::assertLessThanOrEqual(1, $random);
|
|
}
|
|
}
|