| 1234567891011121314151617181920212223242526272829 |
- <?php
- use PHPUnit\Framework\TestCase;
- final class RandTest extends TestCase
- {
- public function testFloat()
- {
- $re = Dy\Rand::float(4);
- $this->assertEquals(true, is_float($re));
- }
- public function testNumeric()
- {
- $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", "");
|