endtoend-test-psl/tests/Psl/Random/FloatTest.php
2019-12-25 19:46:58 +01:00

21 lines
372 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Random;
use PHPUnit\Framework\TestCase;
use Psl\Random;
class FloatTest extends TestCase
{
public function testFloat(): void
{
$random = Random\float();
self::assertIsFloat($random);
self::assertGreaterThanOrEqual(0, $random);
self::assertLessThanOrEqual(1, $random);
}
}