| 1234567891011121314151617181920212223242526272829303132 |
- <?php declare(strict_types=1);
- use PHPUnit\Framework\TestCase;
- final class RandTest extends TestCase
- {
- public function testFloat(): void
- {
- $re = Dy\Rand::float(4);
- $this->assertEquals(true, is_float($re));
- }
- /**
- * @test
- */
- public function testNumeric(): void
- {
- $re = Dy\Rand::numeric(4);
- $this->assertEquals(true, is_numeric($re));
- }
- }
- // var_dump(Dy\Rand::float(4));
- // var_dump(Dy\Rand::alphanumeric(4));
- // var_dump(Dy\Rand::numeric(4));
- // var_dump(Dy\Crypt::md5('test'));
- // var_dump(md5('test'));
- // echo Dy\Shell::exec("exa", "");
|