RandTest.php 550 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. final class RandTest extends TestCase
  4. {
  5. public function testFloat()
  6. {
  7. $re = Dy\Rand::float(4);
  8. $this->assertEquals(true, is_float($re));
  9. }
  10. public function testNumeric()
  11. {
  12. $re = Dy\Rand::numeric(4);
  13. $this->assertEquals(true, is_numeric($re));
  14. }
  15. }
  16. // var_dump(Dy\Rand::float(4));
  17. // var_dump(Dy\Rand::alphanumeric(4));
  18. // var_dump(Dy\Rand::numeric(4));
  19. // var_dump(Dy\Crypt::md5('test'));
  20. // var_dump(md5('test'));
  21. // echo Dy\Shell::exec("exa", "");