]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Util/CryptoTest.php
Add test for Strings::isHex()
[friendica.git] / tests / src / Util / CryptoTest.php
index b976a09838d38c0de5e16d87a5cd46716933c762..76e3076f0f3efe10d7dee6c61dcf3421ac94bfa3 100644 (file)
@@ -8,21 +8,7 @@ use PHPUnit\Framework\TestCase;
 class CryptoTest extends TestCase
 {
        /**
-        * Replaces rand results with given mocks
-        *
-        */
-       private function assertRand($min, $max)
-       {
-               global $phpMock;
-               $phpMock['rand'] = function($mMin, $mMax) use ($min, $max) {
-                       $this->assertEquals($min, $mMin);
-                       $this->assertEquals($max, $mMax);
-                       return 1;
-               };
-       }
-
-       /**
-        * Replaces rand results with given mocks
+        * Replaces random_int results with given mocks
         *
         */
        private function assertRandomInt($min, $max)